Files
website/docs-archive/stardust-protocol/server/objects/spatial.md
2024-08-21 12:47:46 +02:00

852 B

/spatial

Object managing spatial objects and spatial manipulation.

Signals

createSpatial(string name, string spacePath, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)

Creates a new Spatial at /spatial/spatial/[name] with parent at spacePath.

createZone(string name, string fieldPath, string spacePath, Vector3 origin, Quat orientation, string callbackPath, string callbackMethod)

Creates a new Zone at /spatial/zone/[name] with parent at spacePath and field at fieldPath. The arguments callbackPath and callbackMethod refer to a callback method accepting a Vector of 2 TypedVectors, the first being a list of names of nodes that have just entered the field and the second being names of nodes that left (as string).