Beispiel #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);
		}
Beispiel #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);
 }
		public IsoContactPoint(ContactPoint contact_point) : this() {
			normal        = contact_point.normal;
			otherCollider = IsoUtils.IsoConvertCollider(contact_point.otherCollider);
			point         = contact_point.point;
			thisCollider  = IsoUtils.IsoConvertCollider(contact_point.thisCollider);
		}