fix example
This commit is contained in:
@@ -495,9 +495,9 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId)
|
|||||||
int objectUniqueId = 0;
|
int objectUniqueId = 0;
|
||||||
int linkIndex = -1;
|
int linkIndex = -1;
|
||||||
int shapeIndex = -1;
|
int shapeIndex = -1;
|
||||||
int textureIndex = -1;
|
int textureIndex = -2;
|
||||||
double rgbaColor[4] = {0.0, 1.0, 0.0, 1.0};
|
double rgbaColor[4] = {0.0, 1.0, 0.0, 1.0};
|
||||||
b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex, textureIndex);
|
b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex);
|
||||||
b3UpdateVisualShapeRGBAColor(commandHandle, rgbaColor);
|
b3UpdateVisualShapeRGBAColor(commandHandle, rgbaColor);
|
||||||
b3SubmitClientCommand(m_physicsClientHandle, commandHandle);
|
b3SubmitClientCommand(m_physicsClientHandle, commandHandle);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user