2

Having a terrain and some mesh objects placed as STATIC I throw capsule like objects onto my world (for example agents my engine wants to navigate).

I need tham to bahaive as normal collidable objects yet I need tham not to rotate on one axis at all (for me it is Y) so agents always are in a "standing" vertical position like so:

enter image description here

thay will be able jump and move... So I wonder how to make collisions affect rotation only on X and Z axes in Bullet?

4

1 回答 1

1

有一些方法可以做到这一点,但我认为这种情况下最好的方法是将 setAngularFactor() 应用于具有向量 (0, 1, 0) 的代理刚体

于 2014-06-08T12:40:27.503 回答