mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 06:00:12 +00:00
ae8e83988b
Add inverse dynamics / mass matrix code from DeepMimic, thanks to Xue Bin (Jason) Peng Add example how to use stable PD control for humanoid with spherical joints (see humanoidMotionCapture.py) Fix related to TinyRenderer object transforms not updating when using collision filtering
15 lines
405 B
C++
15 lines
405 B
C++
#ifdef BT_ENABLE_PHYSX
|
|
#include "PhysXC_API.h"
|
|
#include "PhysXServerCommandProcessor.h"
|
|
#include "PhysXClient.h"
|
|
|
|
B3_SHARED_API b3PhysicsClientHandle b3ConnectPhysX()
|
|
{
|
|
PhysXServerCommandProcessor* sdk = new PhysXServerCommandProcessor;
|
|
|
|
PhysXClient* direct = new PhysXClient(sdk, true);
|
|
bool connected;
|
|
connected = direct->connect();
|
|
return (b3PhysicsClientHandle)direct;
|
|
}
|
|
#endif //BT_ENABLE_PHYSX
|