MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dBodyGetPointVel

Function dBodyGetPointVel

3rd_party/Src/ode/ode/src/ode.cpp:642–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640
641
642void dBodyGetPointVel (dBodyID b, dReal px, dReal py, dReal pz,
643 dVector3 result)
644{
645 dAASSERT (b);
646 dVector3 p;
647 p[0] = px - b->pos[0];
648 p[1] = py - b->pos[1];
649 p[2] = pz - b->pos[2];
650 p[3] = 0;
651 result[0] = b->lvel[0];
652 result[1] = b->lvel[1];
653 result[2] = b->lvel[2];
654 dCROSS (result,+=,b->avel,p);
655}
656
657
658void dBodyGetPosRelPoint (dBodyID b, dReal px, dReal py, dReal pz,

Callers 5

getPointVelMethod · 0.85
UpdateMethod · 0.85
TContactShotMarkFunction · 0.85
ExitVelocityMethod · 0.85
NotificatePartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected