BEPUphysics.Vehicle.WheelShape.FindSupport C# (CSharp) 메소드

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
        protected internal abstract bool FindSupport(out Vector3 location, out Vector3 normal, out float suspensionLength, out Collidable supportCollidable, out Entity entity, out Material material);

Usage Example

예제 #1
0
 internal void FindSupport()
 {
     if (!(isSupported = shape.FindSupport(out supportLocation, out normal, out suspension.currentLength, out supportingEntity, out supportMaterial)))
     {
         suspension.currentLength = suspension.restLength;
     }
 }