Page 1 of 1

RigidBody scaling - Godot game engine

Posted: Tue Aug 22, 2017 1:09 pm
by B1TZ3R0
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!

Re: RigidBody scaling - Godot game engine

Posted: Mon Oct 02, 2017 2:44 pm
by avithohol
I cannot find it, but I read it somewhere that Bullet doesn't support scale transformation if you that what you are looking for. Only rotation and translation can be stuff into BT transformation matrix, and expect meaningful results.

Re: RigidBody scaling - Godot game engine

Posted: Mon Oct 02, 2017 3:02 pm
by B1TZ3R0
It's possible to set local scaling by using the right method, it's not possible set scaling and / or shearing in the transformation matrix