TrueSync
TSRaycastHit2D.cs
1 namespace TrueSync
2 {
3 
7  public class TSRaycastHit2D {
8 
9  public TSCollider2D collider;
10 
11  public TSRigidBody2D rigidbody;
12 
13  public TSTransform2D transform;
14 
15  public TSRaycastHit2D(TSCollider2D collider) {
16  this.collider = collider;
17  this.rigidbody = collider.GetComponent<TSRigidBody2D>();
18  this.transform = collider.GetComponent<TSTransform2D>();
19  }
20 
21  }
22 
23 }
A deterministic version of Unity&#39;s Transform component for 2D physics.
Definition: TSTransform2D.cs:9
Information about a 2D cast hit.
Represents a physical 2D rigid body.
Abstract collider for 2D shapes.
Definition: TSCollider2D.cs:11