|
| void | EOnTouch (IEntity owner, IEntity other, int touchTypesMask) |
| void | EOnInit (IEntity owner) |
| void | EOnVisible (IEntity owner, int frameNumber) |
| void | EOnFrame (IEntity owner, float timeSlice) |
| void | EOnPostFrame (IEntity owner, float timeSlice) |
| void | EOnAnimEvent (IEntity owner, int type, int slot) |
| void | EOnSimulate (IEntity owner, float timeSlice) |
| void | EOnPostSimulate (IEntity owner, float timeSlice) |
| void | EOnJointBreak (IEntity owner, IEntity other) |
| void | EOnPhysicsMove (IEntity owner) |
| void | EOnContact (IEntity owner, IEntity other, Contact contact) |
| void | EOnPhysicsActive (IEntity owner, bool activeState) |
| void | EOnFixedFrame (IEntity owner, float timeSlice) |
| void | EOnFixedPostFrame (IEntity owner, float timeSlice) |
| void | EOnUser0 (IEntity other, int extra) |
| | EntityEvent.EV_USER+0.
|
| void | EOnUser1 (IEntity other, int extra) |
| | EntityEvent.EV_USER+1.
|
| void | EOnUser2 (IEntity other, int extra) |
| | EntityEvent.EV_USER+2.
|
| void | EOnUser3 (IEntity other, int extra) |
| | EntityEvent.EV_USER+3.
|
| void | EOnUser4 (IEntity other, int extra) |
| | EntityEvent.EV_USER+4.
|
| void | IEntity (IEntitySource src, IEntity parent) |
| | protected script Constructor
|
| proto external EntityID | GetID () |
| proto external IEntity | GetParent () |
| proto external IEntity | GetRootParent () |
| proto external IEntity | GetChildren () |
| proto external IEntity | GetSibling () |
| proto external VObject | GetVObject () |
| | Returns visual object set to this Entity. No reference is added.
|
| proto external EntityPrefabData | GetPrefabData () |
| proto external EntityComponentPrefabData | FindComponentData (typename typeName) |
| proto external BaseWorld | GetWorld () |
| proto external void | SetFixedLOD (int lod) |
| | Set fixed LOD. Use -1 for non-fixed LOD.
|
| proto external void | GetTransform (out vector mat[]) |
| proto external void | GetWorldTransform (out vector mat[]) |
| | See IEntity::GetTransform.
|
| proto external void | GetLocalTransform (out vector mat[]) |
| | See IEntity::GetTransform.
|
| proto external void | ComputeLocalTransform (out vector mat[]) |
| proto external vector | VectorToParent (vector vec) |
| proto external vector | CoordToParent (vector coord) |
| proto external vector | VectorToLocal (vector vec) |
| proto external vector | CoordToLocal (vector coord) |
| proto external vector | GetYawPitchRoll () |
| proto external void | SetYawPitchRoll (vector angles) |
| proto external vector | GetWorldTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external vector | GetTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external vector | GetLocalTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external bool | SetLocalTransform (vector mat[4]) |
| | See IEntity::SetTransform. Returns false, if there is no change in transformation.
|
| proto external bool | SetWorldTransform (vector mat[4]) |
| | See IEntity::SetTransform. Returns false, if there is no change in transformation.
|
| proto external TNodeId | GetPivot () |
| | Returns pivot ID from hierarchy component.
|
| proto external bool | SetTransform (vector mat[4]) |
| proto external vector | GetLocalAngles () |
| | Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
|
| proto external vector | GetLocalYawPitchRoll () |
| proto external vector | GetAngles () |
| | Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
|
| proto external void | SetAngles (vector angles) |
| | Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.
|
| proto external vector | GetOrigin () |
| proto external void | SetOrigin (vector orig) |
| proto external void | SetScale (float scale) |
| proto external float | GetScale () |
| proto external void | GetBounds (out vector mins, out vector maxs) |
| proto external void | GetWorldBounds (out vector mins, out vector maxs) |
| proto external volatile void | SendEvent (notnull IEntity actor, EntityEvent e, void extra) |
| | Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.
|
| proto external string | GetName () |
| proto external int | SetVComponentFlags (VCFlags flags) |
| | Sets component flags.
|
| proto external EntityFlags | SetFlags (EntityFlags flags, bool recursively=false) |
| proto external EntityFlags | ClearFlags (EntityFlags flags, bool recursively=false) |
| proto external EntityFlags | GetFlags () |
| proto external EntityEvent | SetEventMask (EntityEvent e) |
| proto external EntityEvent | ClearEventMask (EntityEvent e) |
| proto external EntityEvent | GetEventMask () |
| proto external bool | IsLoaded () |
| proto external bool | IsDeleted () |
| proto external int | Update () |
| proto external int | AddChild (notnull IEntity child, TNodeId pivot, EAddChildFlags flags=EAddChildFlags.AUTO_TRANSFORM) |
| | Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.
|
| proto external void | RemoveChild (notnull IEntity child, bool keepTransform=false) |
| | Remove Entity from hierarchy.
|
| proto external void | SetName (string name) |
| proto external int | SetCameraMask (int mask) |
| | Sets visibility mask for cameras, where Entity will be rendered.
|
| proto external Physics | GetPhysics () |
| proto external Particles | GetParticles () |
| proto external Animation | GetAnimation () |
| proto external int | Animate (float speed, int loop) |
| | Updates animation (either xob, or particle, whatever).
|
| proto external int | AnimateEx (float speed, int loop, out vector lin, out vector ang) |
| | Updates animation (either xob, or particle, whatever).
|
| proto external void | SetBone (TNodeId bone, vector angles, vector trans, float scale) |
| proto external bool | SetBoneMatrix (TNodeId bone, vector mat[4]) |
| proto external bool | GetBoneMatrix (TNodeId bone, out vector mat[4]) |
| proto external TNodeId | GetBoneIndex (string boneName) |
| proto external void | GetBoneNames (out notnull array< string > boneNames) |
| proto external bool | GetBoneLocalMatrix (TNodeId bone, out vector mat[4]) |
| proto external Managed | FindComponent (typename typeName) |
| proto external int | FindComponents (typename typeName, notnull array< Managed > outComponents) |
| void | EOnTouch (IEntity owner, IEntity other, int touchTypesMask) |
| void | EOnInit (IEntity owner) |
| void | EOnVisible (IEntity owner, int frameNumber) |
| void | EOnFrame (IEntity owner, float timeSlice) |
| void | EOnPostFrame (IEntity owner, float timeSlice) |
| void | EOnAnimEvent (IEntity owner, int type, int slot) |
| void | EOnSimulate (IEntity owner, float timeSlice) |
| void | EOnPostSimulate (IEntity owner, float timeSlice) |
| void | EOnJointBreak (IEntity owner, IEntity other) |
| void | EOnPhysicsMove (IEntity owner) |
| void | EOnContact (IEntity owner, IEntity other, Contact contact) |
| void | EOnPhysicsActive (IEntity owner, bool activeState) |
| void | EOnFixedFrame (IEntity owner, float timeSlice) |
| void | EOnFixedPostFrame (IEntity owner, float timeSlice) |
| void | EOnUser0 (IEntity other, int extra) |
| | EntityEvent.EV_USER+0.
|
| void | EOnUser1 (IEntity other, int extra) |
| | EntityEvent.EV_USER+1.
|
| void | EOnUser2 (IEntity other, int extra) |
| | EntityEvent.EV_USER+2.
|
| void | EOnUser3 (IEntity other, int extra) |
| | EntityEvent.EV_USER+3.
|
| void | EOnUser4 (IEntity other, int extra) |
| | EntityEvent.EV_USER+4.
|
| void | IEntity (IEntitySource src, IEntity parent) |
| | protected script Constructor
|
| proto external EntityID | GetID () |
| proto external IEntity | GetParent () |
| proto external IEntity | GetRootParent () |
| proto external IEntity | GetChildren () |
| proto external IEntity | GetSibling () |
| proto external VObject | GetVObject () |
| | Returns visual object set to this Entity. No reference is added.
|
| proto external EntityPrefabData | GetPrefabData () |
| proto external EntityComponentPrefabData | FindComponentData (typename typeName) |
| proto external BaseWorld | GetWorld () |
| proto external void | SetFixedLOD (int lod) |
| | Set fixed LOD. Use -1 for non-fixed LOD.
|
| proto external void | GetTransform (out vector mat[]) |
| proto external void | GetWorldTransform (out vector mat[]) |
| | See IEntity::GetTransform.
|
| proto external void | GetLocalTransform (out vector mat[]) |
| | See IEntity::GetTransform.
|
| proto external void | ComputeLocalTransform (out vector mat[]) |
| proto external vector | VectorToParent (vector vec) |
| proto external vector | CoordToParent (vector coord) |
| proto external vector | VectorToLocal (vector vec) |
| proto external vector | CoordToLocal (vector coord) |
| proto external vector | GetYawPitchRoll () |
| proto external void | SetYawPitchRoll (vector angles) |
| proto external vector | GetWorldTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external vector | GetTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external vector | GetLocalTransformAxis (int axis) |
| | See IEntity::GetTransformAxis.
|
| proto external bool | SetLocalTransform (vector mat[4]) |
| | See IEntity::SetTransform. Returns false, if there is no change in transformation.
|
| proto external bool | SetWorldTransform (vector mat[4]) |
| | See IEntity::SetTransform. Returns false, if there is no change in transformation.
|
| proto external TNodeId | GetPivot () |
| | Returns pivot ID from hierarchy component.
|
| proto external bool | SetTransform (vector mat[4]) |
| proto external vector | GetLocalAngles () |
| | Same as GetLocalYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
|
| proto external vector | GetLocalYawPitchRoll () |
| proto external vector | GetAngles () |
| | Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
|
| proto external void | SetAngles (vector angles) |
| | Same as SetYawPitchRoll(), but sets rotation around X, Y and Z axis.
|
| proto external vector | GetOrigin () |
| proto external void | SetOrigin (vector orig) |
| proto external void | SetScale (float scale) |
| proto external float | GetScale () |
| proto external void | GetBounds (out vector mins, out vector maxs) |
| proto external void | GetWorldBounds (out vector mins, out vector maxs) |
| proto external volatile void | SendEvent (notnull IEntity actor, EntityEvent e, void extra) |
| | Dynamic event invocation. Parameters are the same as in IEntity::EOnXXXX() methods.
|
| proto external string | GetName () |
| proto external int | SetVComponentFlags (VCFlags flags) |
| | Sets component flags.
|
| proto external EntityFlags | SetFlags (EntityFlags flags, bool recursively=false) |
| proto external EntityFlags | ClearFlags (EntityFlags flags, bool recursively=false) |
| proto external EntityFlags | GetFlags () |
| proto external EntityEvent | SetEventMask (EntityEvent e) |
| proto external EntityEvent | ClearEventMask (EntityEvent e) |
| proto external EntityEvent | GetEventMask () |
| proto external bool | IsLoaded () |
| proto external bool | IsDeleted () |
| proto external int | Update () |
| proto external int | AddChild (notnull IEntity child, TNodeId pivot, EAddChildFlags flags=EAddChildFlags.AUTO_TRANSFORM) |
| | Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.
|
| proto external void | RemoveChild (notnull IEntity child, bool keepTransform=false) |
| | Remove Entity from hierarchy.
|
| proto external void | SetName (string name) |
| proto external int | SetCameraMask (int mask) |
| | Sets visibility mask for cameras, where Entity will be rendered.
|
| proto external Physics | GetPhysics () |
| proto external Particles | GetParticles () |
| proto external Animation | GetAnimation () |
| proto external int | Animate (float speed, int loop) |
| | Updates animation (either xob, or particle, whatever).
|
| proto external int | AnimateEx (float speed, int loop, out vector lin, out vector ang) |
| | Updates animation (either xob, or particle, whatever).
|
| proto external void | SetBone (TNodeId bone, vector angles, vector trans, float scale) |
| proto external bool | SetBoneMatrix (TNodeId bone, vector mat[4]) |
| proto external bool | GetBoneMatrix (TNodeId bone, out vector mat[4]) |
| proto external TNodeId | GetBoneIndex (string boneName) |
| proto external void | GetBoneNames (out notnull array< string > boneNames) |
| proto external bool | GetBoneLocalMatrix (TNodeId bone, out vector mat[4]) |
| proto external Managed | FindComponent (typename typeName) |
| proto external int | FindComponents (typename typeName, notnull array< Managed > outComponents) |