Replies: 1 comment
|
Yes. See |
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.
I want created three personages in my game.
And i thinked created three worlds. Each world for each personage.
b3WorldId worldId1 = b3CreateWorld(&worldDef);
b3WorldId worldId2 = b3CreateWorld(&worldDef);
b3WorldId worldId3 = b3CreateWorld(&worldDef);
I want run physics parallel in three worlds.
float timeStep = 1.0f / 60.0f; int subStepCount = 4;
b3World_Step(worldId1, timeStep, subStepCount);//CPU thread1
b3World_Step(worldId2, timeStep, subStepCount);//CPU thread2
b3World_Step(worldId3, timeStep, subStepCount);//CPU thread3
Because each personage do somthing in here location.
Let`s say: he cuts down trees. Or blows up some territories on terrain.
And sometimes personage might can go to world1 or world2 or world3.
All reactions