public IsoRaycastHit(RaycastHit hit_info) : this()
 {
     collider  = IsoPhysicsUtils.IsoConvertCollider(hit_info.collider);
     distance  = hit_info.distance;
     normal    = hit_info.normal;
     point     = hit_info.point;
     rigidbody = IsoPhysicsUtils.IsoConvertRigidbody(hit_info.rigidbody);
 }
예제 #2
0
 public IsoCollision(Collision collision)
 {
     collider         = IsoPhysicsUtils.IsoConvertCollider(collision.collider);
     contacts         = IsoPhysicsUtils.IsoConvertContactPoints(collision.contacts);
     gameObject       = IsoPhysicsUtils.IsoConvertGameObject(collision.gameObject);
     impulse          = collision.impulse;
     relativeVelocity = collision.relativeVelocity;
     rigidbody        = IsoPhysicsUtils.IsoConvertRigidbody(collision.rigidbody);
 }