TrueSync
|
Collider with a mesh shape. More...
Public Member Functions | |
void | Reset () |
Gets (if any) the mesh attached to this game object. | |
override Shape | CreateShape () |
Creates a shape based on attached mesh. | |
Public Member Functions inherited from TrueSync.TSCollider | |
void | Awake () |
Creates a new TSRigidBody when there is no one attached to this GameObject. | |
void | Update () |
void | Initialize () |
Initializes Shape and RigidBody and sets initial values to position and orientation based on Unity's transform. | |
virtual void | OnDrawGizmos () |
Do a base matrix transformation to draw correctly all collider gizmos. | |
Protected Member Functions | |
override Vector3 | GetGizmosSize () |
Returns the gizmos size. | |
override void | DrawGizmos () |
Draws the specific gizmos of concrete collider (for example "Gizmos.DrawWireCube" for a TSBoxCollider). | |
Properties | |
Mesh | Mesh [get, set] |
Mesh attached to the same game object. | |
List< TSVector > | Vertices [get] |
A list of all mesh's vertices. | |
List< TriangleVertexIndices > | Indices [get] |
A list of mess related structs. | |
Properties inherited from TrueSync.TSCollider | |
Shape | Shape [get, protected set] |
Shape used by a collider. | |
TSVector | Center [get, set] |
Center of the collider shape. | |
TSVector | ScaledCenter [get] |
Returns a version of collider's center scaled by parent's transform. | |
TSRigidBody | attachedRigidbody [get] |
Returns the TSRigidBody attached. | |
TSBBox | bounds [get] |
Returns body's boundind box. | |
IBody3D | Body [get] |
Returns the body linked to this collider. | |
bool | IsBodyInitialized [get] |
Returns true if the body was already initialized. | |
Additional Inherited Members | |
Public Attributes inherited from TrueSync.TSCollider | |
bool | isTrigger |
If it is only a trigger and doesn't interfere on collisions. | |
TSMaterial | tsMaterial |
Simulated material. | |
TSTransform | tsTransform |
Protected Attributes inherited from TrueSync.TSCollider | |
TSVector | lossyScale = TSVector.one |
Holds an first value of the GameObject's lossy scale. | |
Collider with a mesh shape.
Definition at line 11 of file TSMeshCollider.cs.