Replies: 1 comment
|
Use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In simple sample we get position like this:
b3Vec3 position = b3Body_GetPosition(bodyId);
But if world have 5000 boxes, not good do 5000 times b3Body_GetPosition(bodyId);
My question does box3D have function b3Body_GetManyPositions ?
Good for shader(buffer data) drawInstanced thousands objects.
Ideal variant, get pointer to array Box3D positions group bodyes.
Update gpu buffer and drawInstanced.
All reactions