Physics3D how to set fixedRotation such that my character 3D model will not rotate after collision? #864
-
Beta Was this translation helpful? Give feedback.
Answered by
rh101
Sep 27, 2022
Replies: 2 comments 1 reply
-
@cchuicchui |
Beta Was this translation helpful? Give feedback.
0 replies
-
Read this and see if it helps: https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=12113&sid=57b2b4c3ef51ca26decd572b4f15bb94#p12113 You'll most likely need to call this method:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cchuicchui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read this and see if it helps:
https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=12113&sid=57b2b4c3ef51ca26decd572b4f15bb94#p12113
https://gamedev.stackexchange.com/questions/22319/how-to-disable-y-axis-movement-in-the-bullet-physics-engine
You'll most likely need to call this method:
void setAngularFactor(const cocos2d::Vec3& angFac);