Kanda Interactions 0.7.1
Loading...
Searching...
No Matches
Movable Struct Reference

Signals that an entity can be moved. By using this instead of modifying the local transform directly, motion smoothing and movement overrides can be automatically applied when applicable. More...

+ Inheritance diagram for Movable:

Public Member Functions

bool Equals (Movable other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static Movable FromPositionRotation (float3 position, quaternion rotation, bool worldSpace=false)
 Creates a Movable whose initial target position and rotation matches the arguments.
 
static bool operator== (Movable left, Movable right)
 
static bool operator!= (Movable left, Movable right)
 

Public Attributes

bool WorldSpace
 If true, targets will be applied in world space instead of local space. This requires additional computation, so only use this if you don't expect the target to be a root-level entity.
 
float3 TargetPosition
 The target position this entity should move to.
 
quaternion TargetRotation
 The target rotation this entity should rotate to.
 

Detailed Description

Signals that an entity can be moved. By using this instead of modifying the local transform directly, motion smoothing and movement overrides can be automatically applied when applicable.

If you wish to temporarily control or optimize large quantities of movables, the component can be disabled and will stop updating while that is the case.

Member Function Documentation

◆ FromPositionRotation()

static Movable FromPositionRotation ( float3 position,
quaternion rotation,
bool worldSpace = false )
inlinestatic

Creates a Movable whose initial target position and rotation matches the arguments.

Parameters
positionThe target position of the movable.
rotationThe target rotation of the movable.
worldSpaceIf true, the movable target will be applied to the world position of the entity.

The documentation for this struct was generated from the following file: