How do I limited revolute joint (not classic)

Get help using Construct 2

Post » Wed Oct 05, 2016 4:52 pm

Hi. I know that physics limited revolute joint work this way (if I use -45°,45° limits):

Image or Image

But I want to make it work this way:
Image
So the initial angle limits is from another object. How can I do this? (sorry for my bad english, I hope you understand)
B
6
Posts: 4
Reputation: 260

Post » Wed Oct 05, 2016 5:23 pm

ok I think I found solution :)

lower limit: -(anglediff((parent_object.Angle+45),child_object.Angle))
upper limit: anglediff((parent_object.Angle-45),child_object.Angle)
B
6
Posts: 4
Reputation: 260

Post » Thu Oct 27, 2016 10:09 pm

This is exactly what I was looking at trying to do. Am building a rope-like thing and it can be spawned at any angle. Since there's not differentiation between local/global in co-ordinates system, trying to figure out limited joints relative to others is a headache!
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948


Return to How do I....?

Who is online

Users browsing this forum: Klarner, worm1 and 23 guests