示例#1
0
		public IsoCollision(Collision collision) {
			collider         = IsoUtils.IsoConvertCollider(collision.collider);
			contacts         = IsoUtils.IsoConvertContactPoints(collision.contacts);
			gameObject       = IsoUtils.IsoConvertGameObject(collision.gameObject);
			relativeVelocity = collision.relativeVelocity;
			rigidbody        = IsoUtils.IsoConvertRigidbody(collision.rigidbody);
		}
示例#2
0
 public IsoRaycastHit(RaycastHit hit_info) : this()
 {
     collider  = IsoUtils.IsoConvertCollider(hit_info.collider);
     distance  = hit_info.distance;
     normal    = hit_info.normal;
     point     = hit_info.point;
     rigidbody = IsoUtils.IsoConvertRigidbody(hit_info.rigidbody);
 }