diff options
| author | tagcup | 2018-04-14 15:53:25 -0400 |
|---|---|---|
| committer | tagcup | 2018-04-14 15:53:25 -0400 |
| commit | a5e0bb447c339365d99dba772ea733c997c21200 (patch) | |
| tree | 5b8642f6207485bc8dff4796489bef6fe05cdc7a /modules/bullet/collision_object_bullet.cpp | |
| parent | e7445c3d82b60eae2d02e201d21990f0aac096ae (diff) | |
| download | godot-a5e0bb447c339365d99dba772ea733c997c21200.tar.gz godot-a5e0bb447c339365d99dba772ea733c997c21200.tar.zst godot-a5e0bb447c339365d99dba772ea733c997c21200.zip | |
Diffstat (limited to 'modules/bullet/collision_object_bullet.cpp')
| -rw-r--r-- | modules/bullet/collision_object_bullet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bullet/collision_object_bullet.cpp b/modules/bullet/collision_object_bullet.cpp index 05c0e653d..57e4db708 100644 --- a/modules/bullet/collision_object_bullet.cpp +++ b/modules/bullet/collision_object_bullet.cpp @@ -49,7 +49,7 @@ CollisionObjectBullet::ShapeWrapper::~ShapeWrapper() {} void CollisionObjectBullet::ShapeWrapper::set_transform(const Transform &p_transform) { - G_TO_B(p_transform.get_basis().get_scale(), scale); + G_TO_B(p_transform.get_basis().get_scale_abs(), scale); G_TO_B(p_transform, transform); UNSCALE_BT_BASIS(transform); } @@ -158,7 +158,7 @@ int CollisionObjectBullet::get_godot_object_flags() const { void CollisionObjectBullet::set_transform(const Transform &p_global_transform) { - set_body_scale(p_global_transform.basis.get_scale()); + set_body_scale(p_global_transform.basis.get_scale_abs()); btTransform bt_transform; G_TO_B(p_global_transform, bt_transform); |
