Replies: 1 comment
|
Maybe b3OverlapMesh be more simple solution ? |
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.
How i undertood not exist b3Body_SetPosition.
Exist b3Body_SetTransform.
What is mean should create a body with the intended transform ?
Please show simple example.
B3_API void b3Body_SetTransform( b3BodyId bodyId, b3Pos position, b3Quat rotation );
I want moving my box and see how box up to hill.
i do:
in render loop i do:
1)b3Body_GetPosition and Pos.x +=1;
2)draw box
3)b3Body_SetTransform new position
i see my box moving, but not up to hill.
Pos.x +=1; its too big and box passed through the hill.
I do Pos.x +=0.1; now box try up to hill , but always fall down.
And not could up to hill.
How calculating moving speed for box ? i must changing box velocity b3Body_SetLinearVelocity ?
I want box moving up to hill.
I do always in loop b3Body_SetLinearVelocity(BodyIDBox,0.05,0.1,0);
now my box up to hill.
But box not fall down when descent hill
All reactions