BEPUphysics.CollisionTests.Manifolds.SphereContactManifold.Initialize C# (CSharp) Method

Initialize() public method

Initializes the manifold.
Thrown when the collidables being used are not of the proper type.
public Initialize ( Collidable newCollidableA, Collidable newCollidableB ) : void
newCollidableA BEPUphysics.BroadPhaseEntries.Collidable First collidable.
newCollidableB BEPUphysics.BroadPhaseEntries.Collidable Second collidable.
return void
        public override void Initialize(Collidable newCollidableA, Collidable newCollidableB)
        {
            sphereA = (ConvexCollidable<SphereShape>)newCollidableA;
            sphereB = (ConvexCollidable<SphereShape>)newCollidableB;

            if (sphereA == null || sphereB == null)
            {
                throw new Exception("Inappropriate types used to initialize pair.");
            }

        }