Scalling Bullet physics
Posted: Sat Feb 25, 2017 10:09 am
I have further Bullet to my game engine. Actually, I am using rotation and translation it works well.conversely now, I want to set of scales my geometry.I am using:
btWorldTransform.setOrigin(origin);
btWorldTransform.setRotation(rotation);
to set arrangement of bullet body straight Now, if I put thing into scene, I set its btCollisionShape and that has some fixed size. Now, I modify size of my sight object, graphics has scale, but what deal with bullet collision shape?
I found the setLocalScaling technique, but I am not sure if it is, what I want. Anyone can verify this?
btWorldTransform.setOrigin(origin);
btWorldTransform.setRotation(rotation);
to set arrangement of bullet body straight Now, if I put thing into scene, I set its btCollisionShape and that has some fixed size. Now, I modify size of my sight object, graphics has scale, but what deal with bullet collision shape?
I found the setLocalScaling technique, but I am not sure if it is, what I want. Anyone can verify this?