x

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"

WeldTo() without attaching actors.

It is possible to WeldTo two rigid bodies to act as one without attaching them? I need to create multi element structure of blocks (voxels) and I need to act them as one. The problem is when I use WeldTo() for this, I can attach one actor only to one parent, and it not suite my case, because I need to weld to all surrounding voxels. Anyone know solution?

I think about writing custom WeldTo but I didn't work with UE4 source code before and I don't know how difficult it will be?

Product Version: Not Selected
Tags:
more ▼

asked Jan 27 '15 at 04:24 PM in C++ Programming

avatar image

Xender
48 12 17 26

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

1 answer: sort voted first

Are you trying to weld one actor to multiple actors? Is this needed because you want some special hierarchy or because you're trying to make a big compound object? If you're just trying to make a big object you could just keep welding actors together.

It sounds like you want something more custom. You will probably want to write your own component which handles this and you can make use of the existing welding code in FBodyInstance.

If you're trying to weld many many voxels together you will probably want an actual system for handling this instead of making a component for each voxel. The destruction code works in this way. A single destructible component is responsible for many destructible chunks. Under the hood it creates a single PhysX actor for each moving piece and as you break off objects it spawns more actors as needed.

Hope that helps

more ▼

answered Jan 28 '15 at 03:43 AM

avatar image

[Epic]Ori Cohen STAFF
1.4k 25 14 59

avatar image Xender Jan 28 '15 at 09:18 AM

Thank you for help, but I have more questions :D What do you think about Runtime Mesh Generation for that? I am not sure how handle now block positioning in that case. For example when Trace hit mesh I will recive impact point and impact normal, it will me it will me general spot to spawn but not precise space.

Second problem is how to hanlde collision if I have on large collider for whole object, so I dont know what part on body need to destroy on collision

My target is to make something similar to game: Space Engineers.

(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