hi all,
1)
I need implement rope with the smallest CPU overload. I have created rope with bodies which have circle shapes and for joint i have used
distance joint. Exists some better solution? e.g instead of circle shapes use box and instead distance joint use revolute joint?
What technique is fastest? I don't know how physics in box2d is computing so i want know what is best solution.
...average count of segments ropes is 20-25
..have some effect for computing speed shape properties e.g. friction ,restitution... ?
2)
I have box2d scene which have lot of bodies but only few bodies is visible on screen so for best performance i want disable simulation
for invisible bodies. I do this with method PutToSleep(); I know the box2d have body factory and if i delete body with
world::DestroyBody() when is invisible and create new with world::CreateDynamicBody() when is visible it will be faster? I think
set body to sleep is fastest.. but if accidentally...
ps: my box2d version is 2.0.1
thanks
1)
I need implement rope with the smallest CPU overload. I have created rope with bodies which have circle shapes and for joint i have used
distance joint. Exists some better solution? e.g instead of circle shapes use box and instead distance joint use revolute joint?
What technique is fastest? I don't know how physics in box2d is computing so i want know what is best solution.
...average count of segments ropes is 20-25
..have some effect for computing speed shape properties e.g. friction ,restitution... ?
2)
I have box2d scene which have lot of bodies but only few bodies is visible on screen so for best performance i want disable simulation
for invisible bodies. I do this with method PutToSleep(); I know the box2d have body factory and if i delete body with
world::DestroyBody() when is invisible and create new with world::CreateDynamicBody() when is visible it will be faster? I think
set body to sleep is fastest.. but if accidentally...
ps: my box2d version is 2.0.1
thanks