Fix not attaching updated collision data to rigid body.
This commit is contained in:
@@ -248,7 +248,7 @@ void Collider::UpdateGeometry()
|
|||||||
const auto rigidBody = dynamic_cast<RigidBody*>(GetParent());
|
const auto rigidBody = dynamic_cast<RigidBody*>(GetParent());
|
||||||
if (_staticActor != nullptr || (rigidBody && CanAttach(rigidBody)))
|
if (_staticActor != nullptr || (rigidBody && CanAttach(rigidBody)))
|
||||||
{
|
{
|
||||||
PhysicsBackend::AttachShape(_shape, actor);
|
Attach(rigidBody);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user