Einzelnen Beitrag anzeigen

TurboMartin

Registriert seit: 13. Feb 2006
Ort: Bad Honnef
765 Beiträge
 
Turbo Delphi für Win32
 
#3

Re: Kennt hier Jemand die Function NewtoncreateCompoundColli

  Alt 12. Jun 2006, 15:35
Ich weiß zwar nicht, wie du C kannst, aber vielleicht hilft das:
Code:
********************************************************************************************** 
// 
// complex collision primitives creation functions
// note: can only be used with static bodies (bodies with infinite mass)
// 
// ********************************************************************************************** 
inline NewtonCollision* NewtonCreateCompoundCollision (const NewtonWorld* newtonWorld, int count,
                                             NewtonCollision* const collisionPrimitiveArray[])

   assert(count >= 0);
   for (int i = 0; i < count; ++i)
      assert(collisionPrimitiveArray[i]);
   return nw::NewtonCreateCompoundCollision(newtonWorld, count, collisionPrimitiveArray);


inline NewtonCollision* NewtonCreateUserMeshCollision (const NewtonWorld* newtonWorld, const float *minBox,
                                             const float *maxBox, void *userData, NewtonUserMeshCollisionCollideCallback collideCallback,
                                             NewtonUserMeshCollisionRayHitCallback rayHitCallback, NewtonUserMeshCollisionDestroyCallback destroyCallback)

   NewtonValidateVector(minBox);
   NewtonValidateVector(maxBox);
   return nw::NewtonCreateUserMeshCollision(newtonWorld, minBox, maxBox, userData, collideCallback, rayHitCallback, destroyCallback);


//
Tomorrow will be cancelled due to lack of interest.

  Mit Zitat antworten Zitat