Quantcast
Viewing all articles
Browse latest Browse all 194

Checking if a 2D joint gets pulled or pushed

Hi there, I'm working on a rope swing game. I'm using a Spring Joint for the rope and I would like to check, if the joint is getting currently pulled (if the character "hangs" in the joint) or if it gets pushed (if the character is flying towards the end anchor point of the joint). I want do do that, because the rope should only keep its length, if the charakter is hanging. If not, the rope should adjust its length to the distance character - end anchor point on Update. I hope you know what I mean. The docs don't say anything about the forces beeing applied to the rope. Any ideas? Thanks! Stefan

Viewing all articles
Browse latest Browse all 194

Trending Articles