RigidBody scaling - Godot game engine
Posted: Tue Aug 22, 2017 1:09 pm
I'm implementing a wrapper of Bullet Physics engine to Godot game engine, here the PR https://github.com/godotengine/godot/pull/10013.
It's almost done, I just need fix some problems.
One of these is that I need set the scaling of a RigidBody.
I know that I can use setLocalScaling on the shape but I don't want use it since the shape may be reused with different scale by another RigidBody.
Each RigidBody has btCompoundShape where I can set a shape with its transform but I've noticed that this transform not consider the scale.
So the question is that how can I scale the btRigidBody?
I think is possible since this is a common feature.
Thanks in advance!
It's almost done, I just need fix some problems.
One of these is that I need set the scaling of a RigidBody.
I know that I can use setLocalScaling on the shape but I don't want use it since the shape may be reused with different scale by another RigidBody.
Each RigidBody has btCompoundShape where I can set a shape with its transform but I've noticed that this transform not consider the scale.
So the question is that how can I scale the btRigidBody?
I think is possible since this is a common feature.
Thanks in advance!