SpatialEntity
Inherits from Entity
Summary
Constructors
SpatialEntity(other: EntityBusPeer) |
SpatialEntity(other: Entity) |
Properties
Name | Type |
---|---|
transform | LinearTransform |
aabb | AxisAlignedBox |
aabbTransform | LinearTransform |
Static members
Name | Type |
---|---|
SpatialEntity.typeInfo | TypeInformation |
Constructors
SpatialEntity
SpatialEntity(other: EntityBusPeer)
Parameters
Name | Type | Description |
---|---|---|
other | EntityBusPeer |
SpatialEntity
SpatialEntity(other: Entity)
Parameters
Name | Type | Description |
---|---|---|
other | Entity |
Properties
transform
Gets or sets the world transform of this entity.
NOTE: You must assign a new LinearTransfrom to update, changing individual vector components will not work
Example:
local myTransform = mySpatialEntity.transform
myTransform.trans.y = 1
mySpatialEntity.transform = myTransform
aabb
aabbTransform
Static members
typeInfo
Last modified May 2, 2022: Add changelog for build 18616 (95be163f)