TrueSync
Public Member Functions | Public Attributes | Properties | List of all members
TrueSync.TSTransform2D Class Reference

A deterministic version of Unity's Transform component for 2D physics. More...

Inheritance diagram for TrueSync.TSTransform2D:

Public Member Functions

void Start ()
 
void Initialize ()
 Initializes internal properties based on whether there is a TSCollider2D attached.
 
void Update ()
 

Public Attributes

TSCollider2D tsCollider
 
TSTransform2D tsParent
 

Properties

TSVector2 position [get, set]
 Property access to position. More...
 
FP rotation [get, set]
 Property access to rotation. More...
 
TSVector scale [get, set]
 Property access to scale.
 

Detailed Description

A deterministic version of Unity's Transform component for 2D physics.

Definition at line 9 of file TSTransform2D.cs.

Property Documentation

TSVector2 TrueSync.TSTransform2D.position
getset

Property access to position.

It works as proxy to a Body's position when there is a collider attached.

Definition at line 23 of file TSTransform2D.cs.

FP TrueSync.TSTransform2D.rotation
getset

Property access to rotation.

It works as proxy to a Body's rotation when there is a collider attached.

Definition at line 50 of file TSTransform2D.cs.


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