Fix crash due to typo in Character Controller

This commit is contained in:
Wojtek Figat
2023-03-20 18:55:41 +01:00
parent 9568237c8e
commit 5bf645252f

View File

@@ -210,7 +210,7 @@ void CharacterController::CreateController()
_controller = PhysicsBackend::CreateController(GetPhysicsScene()->GetPhysicsScene(), this, this, _contactOffset, position, _slopeLimit, (int32)_nonWalkableMode, Material.Get(), Math::Abs(_radius) * scaling, Math::Abs(_height) * scaling, _stepOffset, _shape);
// Setup
PhysicsBackend::SetControllerUpDirection(_shape, _upDirection);
PhysicsBackend::SetControllerUpDirection(_controller, _upDirection);
PhysicsBackend::SetShapeLocalPose(_shape, _center, Quaternion::Identity);
UpdateLayerBits();
UpdateBounds();