C# Class BEPUphysics.CollisionTests.CollisionAlgorithms.BoxSphereTester

Static class with methods to help with testing box shapes against sphere shapes.
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
AreShapesColliding ( BoxShape box, SphereShape sphere, RigidTransform &boxTransform, Vector3 &spherePosition, ContactData &contact ) : bool

Tests if a box and sphere are colliding.

Method Details

AreShapesColliding() public static method

Tests if a box and sphere are colliding.
public static AreShapesColliding ( BoxShape box, SphereShape sphere, RigidTransform &boxTransform, Vector3 &spherePosition, ContactData &contact ) : bool
box BEPUphysics.CollisionShapes.ConvexShapes.BoxShape Box to test.
sphere BEPUphysics.CollisionShapes.ConvexShapes.SphereShape Sphere to test.
boxTransform BEPUutilities.RigidTransform Transform to apply to the box.
spherePosition Vector3 Transform to apply to the sphere.
contact ContactData Contact point between the shapes, if any.
return bool