|
TrueSync
|
Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
Properties |
List of all members
TrueSync.TSCollider Class Referenceabstract
Abstract collider for 3D shapes. More...
Inheritance diagram for TrueSync.TSCollider:
Public Member Functions | |
| abstract Shape | CreateShape () |
| Creates the shape related to a concrete implementation of 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. | |
Public Attributes | |
| TSMaterial | tsMaterial |
| Simulated material. | |
| TSTransform | tsTransform |
Protected Member Functions | |
| abstract Vector3 | GetGizmosSize () |
| Returns the gizmos size. | |
| abstract void | DrawGizmos () |
| Draws the specific gizmos of concrete collider (for example "Gizmos.DrawWireCube" for a TSBoxCollider). | |
Protected Attributes | |
| TSVector | lossyScale = TSVector.one |
| Holds an first value of the GameObject's lossy scale. | |
Properties | |
| Shape | Shape [get, protected set] |
| Shape used by a collider. | |
| bool | isTrigger [get, set] |
| If it is only a trigger and doesn't interfere on collisions. | |
| 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. | |
Detailed Description
Abstract collider for 3D shapes.
Definition at line 13 of file TSCollider.cs.
The documentation for this class was generated from the following file:
Generated by
1.8.11