Public Member Functions | Protected Member Functions | Properties | List of all members
TrueSync.TSPolygonCollider2D Class Reference

Collider with a polygon 2D shape. More...

Inheritance diagram for TrueSync.TSPolygonCollider2D:

Public Member Functions

override TrueSync.Physics2D.Shape CreateShape ()
 Create the internal shape used to represent a TSBoxCollider.
- Public Member Functions inherited from TrueSync.TSCollider2D
void Awake ()
 Creates a new TSRigidBody when there is no one attached to this GameObject.
void Update ()
void Initialize (Physics2D.World world)
 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 void DrawGizmos ()
 Draws the specific gizmos of concrete collider (for example "Gizmos.DrawWireCube" for a TSBoxCollider).
override Vector3 GetGizmosSize ()
 Returns the gizmos size.


TSVector2[] points [get, set]
- Properties inherited from TrueSync.TSCollider2D
Physics2D.Shape Shape [get, protected set]
 Shape used by a collider.
IBody2D Body [get]
 Returns RigidBody associated to this TSRigidBody.
TSVector2 Center [get, set]
 Center of the collider shape.
TSVector2 ScaledCenter [get]
 Returns a version of collider's center scaled by parent's transform.
TSRigidBody2D attachedRigidbody [get]
 Returns the TSRigidBody attached.
bool IsBodyInitialized [get]
 Returns true if the body was already initialized.

Additional Inherited Members

- Public Attributes inherited from TrueSync.TSCollider2D
bool isTrigger
 If it is only a trigger and doesn't interfere on collisions.
TSMaterial tsMaterial
 Simulated material.
TSTransform2D tsTransform
- Protected Attributes inherited from TrueSync.TSCollider2D
TSVector lossyScale =
 Holds an first value of the GameObject's lossy scale.

Detailed Description

Collider with a polygon 2D shape.

Definition at line 9 of file TSPolygonCollider2D.cs.

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