@rbxts/falldown 1.1.5 → 1.1.6
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/out/init.luau +5 -2
- package/package.json +1 -1
package/out/init.luau
CHANGED
|
@@ -630,11 +630,14 @@ do
|
|
|
630
630
|
local immGroundPoint = _condition_2
|
|
631
631
|
local _vector3_1 = Vector3.new(0, self._objectiveHeight, 0)
|
|
632
632
|
local immCenter = immGroundPoint + _vector3_1
|
|
633
|
-
--
|
|
633
|
+
-- Determine facing: front (belly down) = feet->head, back = head->feet
|
|
634
|
+
local immFacing_raw = ActiveRagdoll:GetVerticalDirection(self.HumanoidRootPart.CFrame.LookVector)
|
|
634
635
|
local head = self.Character:FindFirstChild("Head")
|
|
635
636
|
local feetMid = self.LeftTouchPart.Position:Lerp(self.RightTouchPart.Position, 0.5)
|
|
636
637
|
local headPos = if (head and head:IsA("BasePart")) then head.Position else self.HumanoidRootPart.Position
|
|
637
|
-
local
|
|
638
|
+
local feetToHead = Vector3.new(headPos.X - feetMid.X, 0, headPos.Z - feetMid.Z)
|
|
639
|
+
-- facing === 1 means belly down (front), 0 means back down
|
|
640
|
+
local immFacing = if immFacing_raw == 1 then feetToHead else feetToHead * (-1)
|
|
638
641
|
if immFacing.Magnitude < 1e-3 then
|
|
639
642
|
immFacing = Vector3.new(self.HumanoidRootPart.CFrame.LookVector.X, 0, self.HumanoidRootPart.CFrame.LookVector.Z)
|
|
640
643
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/falldown",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "A realistic ragdoll physics system for Roblox with smooth getup animations, collision management, and customizable velocity modes. Supports both R6 and R15 rigs with surface-aware positioning.",
|
|
5
5
|
"main": "out/init.luau",
|
|
6
6
|
"scripts": {
|