Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Can you restrict an axis on a ball socket constraint?

Asked by
MrHerkes 166
6 years ago
Edited 6 years ago

So I have my own ragdoll script that only works on R15 players. I put ball socket joints on the upper limbs, lower torso and the head and they spin all the way around unrealistically. I want the head, lower torso and upper limbs to only spin 180 degrees in a Y axis. Is this possible?

0
I haven't learned all these new LUA mumbo jumbo yet since I just got back to scripting, check out the wiki and try experimenting. When using Constraints, the PGS Physics Solver must be enabled. User#18043 95 — 6y
0
Correct me if I'm wrong, I haven't worked with constraints before but I did some research. I'm pretty sure that you can use the LimitsEnabled property to set limits on the Ball Socket Constraint. http://wiki.roblox.com/index.php?title=API:Class/BallSocketConstraint/LimitsEnabled PyccknnXakep 1225 — 6y
0
That's only in a cone. I actually mean that the head is going backwards, the legs and lower torso are also going backwards too. It would look like a broken neck if the head turned all the way. I want the head, limbs and lower torso to rotate freely but the y axis is restricted to 180. MrHerkes 166 — 6y
0
Please spell "Lua" right. It is "Lua", not "LUA". It looks ugly. see http://acronyms.thefreedictionary.com/lua and https://i.gyazo.com/00e893cbc450a25fce72bd251c3da1fe.png hiimgoodpack 2009 — 6y

1 answer

Log in to vote
0
Answered by
EgoMoose 802 Moderation Voter
6 years ago

You are looking for a Hinge constraint I believe.

Ad

Answer this question