Builtin Library
README.md
spawnModel
spawnModel(name, source, ...) — spawn an entity carrying a Model (or a registered Asset bundle) plus a Collider at a position, in one call. The reusable "block out a scene / drop in a model" primitive shared by content, editor tooling, and test scenes.
Static physics by default; opts.physics (e.g. "dynamic") makes it a dynamic body. opts also accepts scale (a number or a vector) and rotation / rot (a quaternion when it carries w/[4], otherwise euler degrees). A string identity, guid, or mesh path is resolved to an AssetRef, so a primitive name ("cube") or a mesh path passes straight through.
local spawnModel = require("modules.spawnModel")
spawnModel("crate", "cube", 0, 1, 0)
spawnModel("rock", meshRef, { 2, 0, 2 }, { physics = "dynamic", scale = 1.5 })
For a bare synced entity with no model, use modules.spawn.