Physics constraint: How can I reduce minimum distance?
Hello, I am trying to implement a grappling hook in a 2d platformer game similar to the one in Trine (https://www.youtube.com/watch?v=xvIOBpmlDD4). So far I've been able to implement grappling, swinging and increasing distance to the point where the hook is anchored. I use a physics constraint to preserve the distance between the player character and the anchor point which can be increased by increasing the linear limit but it does not work to decrease the distance below the distance at the time, I connect the player character to the joint. It seems, that this distance is regarded as limit 0 and reducing limit to a negative value does not further decrease the distance.
Is there a way to decrease this minimum distance?
asked Nov 30 '16 at 01:49 PM in Blueprint Scripting
Sorry you never got an answer to this. In the current version of UE (4.22) the physics constraint component has a built in motor/drive function that you can use to move up and down your limit.
answered Jun 03 '19 at 10:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here