initial implementation to send debug lines from physics server to client,
need to add streaming because memory is too small to store all lines initial test of PD control in physics server, need to switch to PD control for motor constraint, instead of using external forces.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#define BT_PHYSICS_CLIENT_API_H
|
||||
|
||||
#include "SharedMemoryCommands.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
|
||||
|
||||
class PhysicsClientSharedMemory //: public CommonPhysicsClientInterface
|
||||
class PhysicsClientSharedMemory
|
||||
{
|
||||
struct PhysicsClientSharedMemoryInternalData* m_data;
|
||||
protected:
|
||||
@@ -33,6 +33,15 @@ public:
|
||||
virtual void getJointInfo(int index, b3JointInfo& info) const;
|
||||
|
||||
virtual void setSharedMemoryKey(int key);
|
||||
|
||||
virtual void uploadBulletFileToSharedMemory(const char* data, int len);
|
||||
|
||||
virtual int getNumDebugLines() const;
|
||||
|
||||
virtual const btVector3* getDebugLinesFrom() const;
|
||||
virtual const btVector3* getDebugLinesTo() const;
|
||||
virtual const btVector3* getDebugLinesColor() const;
|
||||
|
||||
};
|
||||
|
||||
#endif //BT_PHYSICS_CLIENT_API_H
|
||||
|
||||
Reference in New Issue
Block a user