Ejemplo n.º 1
0
 internal void UpdateGameObject(GameObject otherGO)
 {
     if (this.gameObject == null && otherGO != null)
     {
         this.gameObject = otherGO;
         this.rigidbody  = this.gameObject.GetComponent <BoxBodyComponent>();
     }
 }
Ejemplo n.º 2
0
 public void Reset()
 {
     gameObject = default;
     entityId   = default;
     point      = default;
     normal     = default;
     fixture    = default;
     rigidbody  = default;
     transform  = default;
 }
Ejemplo n.º 3
0
 internal void Reset()
 {
     gameObject       = null;
     rigidbody        = null;
     entityAId        = null;
     entityBId        = null;
     bodyA            = null;
     bodyB            = null;
     fixtureA         = null;
     fixtureB         = null;
     relativeVelocity = default;
 }
Ejemplo n.º 4
0
 public BoxRaycastHit2D Init(GameObject go, Fixture f, string entityId, System.Numerics.Vector2 point = default, System.Numerics.Vector2 normal = default)
 {
     this.gameObject = go;
     this.fixture    = f;
     this.entityId   = entityId;
     this.point      = point;
     this.normal     = normal;
     if (go != null)
     {
         this.rigidbody = go.GetComponent <BoxBodyComponent>();
         this.transform = go.GetComponent <BoxTransformComponent>();
     }
     return(this);
 }