@rbxts/gravity-controller 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GravityController.rbxmx +2 -2
- package/package.json +1 -1
package/GravityController.rbxmx
CHANGED
|
@@ -2499,7 +2499,7 @@ local function onGravityStep(self, dt)
|
|
|
2499
2499
|
local newCharCF = CFrame.fromMatrix(ZERO3, charRight, newGravity, -charForward)
|
|
2500
2500
|
|
|
2501
2501
|
if self._camera.CameraModule:IsCamRelative() then
|
|
2502
|
-
newCharCF = CFrame.fromMatrix(ZERO3, -left, newGravity)
|
|
2502
|
+
newCharCF = CFrame.fromMatrix(ZERO3, -left, newGravity, forward)
|
|
2503
2503
|
elseif isInputMoving then
|
|
2504
2504
|
newCharRotation = newCharRotation:Lerp(getRotationBetween(
|
|
2505
2505
|
charForward,
|
|
@@ -3205,4 +3205,4 @@ return Signal</string>
|
|
|
3205
3205
|
</Item>
|
|
3206
3206
|
</Item>
|
|
3207
3207
|
</Item>
|
|
3208
|
-
</roblox>
|
|
3208
|
+
</roblox>
|