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"

How can you properly set a physics contraint's contrained actors or components at runtime?

I'm trying to spawn a physic constraint actor at runtime and set its constrained components to a sphere spawned at runtime as well as the player's hand mesh, which is also spawned at runtime (VR Template MotionController blueprint).

I am getting the following error:

Constraint '/Game/VirtualRealityBP/Maps/UEDPIE_0_MotionControllerMap.MotionControllerMap:PersistentLevel.PhysicsConstraintActor_0.MyConstraintComp' attempting to create a joint between two actors in different scenes ( 'None' and '/Game/VirtualRealityBP/Maps/UEDPIE_0_MotionControllerMap.MotionControllerMap:PersistentLevel.BP_MotionController_C_1.HandMesh' ). No joint created.

Here is the blueprint I am using to do so. 'ImpactPointObject1' is the sphere spawned at runtime, and 'Hand Mesh' is being referenced from the MotionController blueprint, which is spawned as part of the MotionControllerPawn actor in the VR Template. To be clear, the physics constraint is being spawned after the 'ImpactPointObject1' but is still being returned as 'None' in the error message, from what I can tell.

alt text

My goal here is to be able to attach different objects to each other in real-time within the game and have them be bound by physics contraints. Any help would be greatly appreciated. Thank you!

Product Version: UE 4.19
blueprint.jpg (69.1 kB)
more ▼

asked Jan 25 '19 at 01:37 AM in Blueprint Scripting

avatar image

108 7 13 22

avatar image Tuerer Jan 25 '19 at 06:40 AM

I remember trying to create a constraint between the Character Component and an Actor in the world; that did not end well. Even if they got attached to each other, the movement was awful.

Have you considered not to create a constraint, buy to snap that sphere to a socket? Maybe that will work better?

Edit: have you seen this thread: https://answers.unrealengine.com/questions/510807/no-joint-created-warning.html ?

avatar image jessekirbs Jan 26 '19 at 01:59 AM

Thanks for the info. I should have mentioned that I am trying to connect two objects 'sphere' and 'hand' with a cable actor so the physics constraint is to keep them from separating to infinity. I did check that link out but it seems to be related to a different problem. Appreciate your input.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This video does not use physics constraints but it does involve attaching objects together in real time with simulated physics. Marco's entire youtube channel has some good content to learn from. https://www.youtube.com/watch?v=O3TM5CL6Eow&t=564s

more ▼

answered Jan 26 '19 at 02:13 AM

avatar image

81 1 5 2

avatar image jessekirbs Jan 26 '19 at 02:36 AM

Great video but I don't think it solves what I'm trying to do unfortunately. If you're familiar with the game 'Just Cause' I'm essentially trying to create the grappling hook where you can attach two objects together via a cable and they will interact appropriately. Thank you for sending the link.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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