Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

physics constraint motors with blueprints

Firstly let me explain my use case. I am building a grapple hook system, but since I am using grapple hooks in zero gravity and between moving actors the typical launch character method doesn't work.

My current set up consist of Class_GrapplingGun and Class_GrappleHook both are actors. I spawn the grapple hook, add impulse and physics constraint from the gun with all linear axis limited. When the grapple hook collides with another target it sets a fixed constraint to the grappled object. This all works fine.

Now I with a reference to the constraint going from gun to hook, I need to set up a linear motor to retract the grapple hook and grappled object. I just can not figure out how to set up a retracting motor in blueprints to finish my grapple or harpoon mechanic. Thanks in advance.

Product Version: UE 4.14
more ▼

asked Jan 12 '17 at 06:58 AM in Blueprint Scripting

avatar image

152 8 7 16

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Any progress?

more ▼

answered Sep 27 '18 at 05:47 PM

avatar image

6 1 2 4

avatar image Blastertoad Sep 29 '18 at 12:38 PM

I tried a few things but moved onto other projects for now. The two methods that provided best results are as follows.

  1. When set to retract on tick set max length of constraint to distance between actors - X. This works but makes for a lurching and jerking movement that was undesirable and compounded when replicated.

  2. When retracting on tick add force to player and set constraint length to distance between actors.

What ended up putting my project on hold was that I wanted the grapple line to wrap around objects, so I had 20 constraints joined together. The added complexity of the physics interactions ended up very messy with odd interactions.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question