EntTransform

Transform
Stores 3d position and connection data for entities

ID: EntTransform
Base Type: Entity Component

Values

Name

Type

Description

Parent

Entity Variable

Connect To Children

Bool Variable

Connect children physics bodies together

Connect To Parent

Bool Variable

Connect parent physics body to this ent

Start Position

Vector3 Variable

Start Rotation

Vector3 Variable

Scale

Vector3 Variable

Connected To

Entity Variable List

Entities this Entity is connected to - - ReadOnly

In Ground

Bool Variable

Static

Bool Variable

Will set PhysicsBody to Kinematic (not movable)

Auto Connect

Bool Variable

Autoconnect to other entities in edit mode

Held By

Entity Component Variable

Current Holder entity holding this entity - - ReadOnly

Methods

Name

Description

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

Name

Type

Description

Transform Parts

Transform Part List

All Transform Parts under this Entity

Position

Vector3

Returns current position in the world

Rotation

Vector3

Returns current rotation in the world

Transform Part

Transform Part

The main Transform

Transform Part Eye

Transform Part

The Eye transform set by Components on the Entity

Transform Part Center

Transform Part

The Center transform set by Components on the Entity

Physics Body

PhysicsBody

Play mode PhysicsBody

In Water

Bool

Can See Entity

Bool

Checks if any colliders are blocking this Entity from seeing another one. Will use the 'Eye' transform if set

Children

Entity List

Children In Asset

Entity List

Entity Children that are in the Entity's asset

Attributes:
ModboxMain.MBTypeComponentNoIngameAddingAttribute