EntTransform

Transform
Stores 3d position and connection data for entities

ID: EntTransform
Base Type: Entity Component

Values

NameTypeDescription
ParentEntity Variable
Connect To ChildrenBool VariableConnect children physics bodies together
Connect To ParentBool VariableConnect parent physics body to this ent
Start PositionVector3 Variable
Start RotationVector3 Variable
ScaleVector3 Variable
Connected ToEntity Variable ListEntities this Entity is connected to - - ReadOnly
In GroundBool Variable
StaticBool VariableWill set PhysicsBody to Kinematic (not movable)
Auto ConnectBool VariableAutoconnect to other entities in edit mode
Held ByEntity Component VariableCurrent Holder entity holding this entity - - ReadOnly

Methods

NameDescription
Move Body Position(Vector3 moveTo)Move Entity to a world position, will move entire physics body if connected to others
Move Body Rotation(Vector3 angle)Move Entity to a world rotation, will move entire physics body if connected to others
Move Transform Position(Vector3 moveTo)Move just this Entity's transform to a world position. Will move Body if it just has transform
Move Transform Rotation(Vector3 rotateTo)Move just this Entity's transform to a world rotation. Will move Body if it just has transform
Disconnect()Disconnect from current physics body
Connect To(Entity otherEnt)Connect to another physics body during playmode
Set Parent(Entity newParent, Bool keepPosition)Set new Parent but keep World position

Properties

NameTypeDescription
Transform PartsTransform Part ListAll Transform Parts under this Entity
PositionVector3Returns current position in the world
RotationVector3Returns current rotation in the world
Transform PartTransform PartThe main Transform
Transform Part EyeTransform PartThe Eye transform set by Components on the Entity
Transform Part CenterTransform PartThe Center transform set by Components on the Entity
Physics BodyPhysicsBodyPlay mode PhysicsBody
In WaterBool
Can See EntityBoolChecks if any colliders are blocking this Entity from seeing another one. Will use the 'Eye' transform if set
ChildrenEntity List
Children In AssetEntity ListEntity Children that are in the Entity's asset

Attributes:
ModboxMain.MBTypeComponentNoIngameAddingAttribute