Esempio n. 1
0
 public SmartContactPoint(Vector3 normal, SmartCollider2D otherCollider, Vector3 point)
     : this()
 {
     this.normal        = normal;
     this.otherCollider = otherCollider;
     this.point         = point;
 }
Esempio n. 2
0
 public SmartCollision2D(
     SmartCollider2D collider,
     SmartContactPoint[] contacts,
     GameObject gameObject,
     Vector3 impulse,
     Vector3 relativeVelocity,
     Transform transform,
     Rigidbody rigidbody,
     Rigidbody2D rigidbody2D)
 {
     this.collider         = collider;
     this.contacts         = contacts;
     this.gameObject       = gameObject;
     this.impulse          = impulse;
     this.relativeVelocity = relativeVelocity;
     this.transform        = transform;
     this.rigidbody        = rigidbody;
     this.rigidbody2D      = rigidbody2D;
 }