C# Class BEPUphysics.CollisionTests.CollisionAlgorithms.SphereTester

Helper class to test spheres against each other.
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
AreSpheresColliding ( SphereShape a, SphereShape b, Vector3 &positionA, Vector3 &positionB, ContactData &contact ) : bool

Computes contact data for two spheres.

Method Details

AreSpheresColliding() public static method

Computes contact data for two spheres.
public static AreSpheresColliding ( SphereShape a, SphereShape b, Vector3 &positionA, Vector3 &positionB, ContactData &contact ) : bool
a BEPUphysics.CollisionShapes.ConvexShapes.SphereShape First sphere.
b BEPUphysics.CollisionShapes.ConvexShapes.SphereShape Second sphere.
positionA Vector3 Position of the first sphere.
positionB Vector3 Position of the second sphere.
contact ContactData Contact data between the spheres, if any.
return bool