Пример #1
0
 /// <summary>
 /// Remove a collision shape. Called by CollisionShape.
 /// </summary>
 public void RemoveCollisionShape(CollisionShape shape)
 {
     Runtime.ValidateRefCounted(this);
     PhysicsWorld_RemoveCollisionShape(handle, (object)shape == null ? IntPtr.Zero : shape.Handle);
 }
Пример #2
0
 /// <summary>
 /// Perform a physics world swept convex test using a user-supplied collision shape and return the first hit.
 /// </summary>
 public void ConvexCast(ref PhysicsRaycastResult result, CollisionShape shape, Urho.Vector3 startPos, Urho.Quaternion startRot, Urho.Vector3 endPos, Urho.Quaternion endRot, uint collisionMask = uint.MaxValue)
 {
     Runtime.ValidateRefCounted(this);
     PhysicsWorld_ConvexCast(handle, ref result, (object)shape == null ? IntPtr.Zero : shape.Handle, ref startPos, ref startRot, ref endPos, ref endRot, collisionMask);
 }