FindSupport() 보호된 추상적인 메소드

Finds a supporting entity, the contact location, and the contact normal.
protected abstract FindSupport ( Vector3 &location, Vector3 &normal, float &suspensionLength, Collidable &supportCollidable, Entity &entity, BEPUphysics.Materials.Material &material ) : bool
location Vector3 Contact point between the wheel and the support.
normal Vector3 Contact normal between the wheel and the support.
suspensionLength float Length of the suspension at the contact.
supportCollidable Collidable Collidable supporting the wheel, if any.
entity Entity Entity supporting the wheel, if any.
material BEPUphysics.Materials.Material Material of the support.
리턴 bool
예제 #1
0
 internal void FindSupport()
 {
     if (!(isSupported = shape.FindSupport(out supportLocation, out normal, out suspension.currentLength, out supportingEntity, out supportMaterial)))
     {
         suspension.currentLength = suspension.restLength;
     }
 }