revert backward compabitility in API

This commit is contained in:
Erwin Coumans
2018-10-20 19:44:39 -07:00
parent 01a8a36933
commit 2d224cf319
5 changed files with 27 additions and 5 deletions

View File

@@ -497,7 +497,7 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId)
int shapeIndex = -1;
int textureIndex = -2;
double rgbaColor[4] = {0.0, 1.0, 0.0, 1.0};
b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex);
b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape2(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex);
b3UpdateVisualShapeRGBAColor(commandHandle, rgbaColor);
b3SubmitClientCommand(m_physicsClientHandle, commandHandle);
break;