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"

How to ignore collisions for specific actor

Hi, I've got next problem, I've got actors of the same type (i.e. players), they can be in different teams. And I want to make blocking volume for players from different teams. Player actors has skeletal mesh and number of other components, they have the same object type in Collisions settings and in Physics they have "Simulate physics" checked.

I've been looking to MoveIgnoreActor method, but it doesn't work for actors with physics simulation. Making two collision channels for different teams in not an option for me for some architecture reasons. So I'll be glad to hear some ideas how can it be implemented.

By "Blocking volumes" I mean actor with skeletal or static mesh with blocking collisions for one team actors and ignores collisions for another team.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 22 '16 at 07:56 PM in C++ Programming

avatar image

mumreg
1 1 1 4

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

2 answers: sort voted first

Hello mumreg,

If you're planning on relying the collision of these blocking volumes but only want it to affect certain actors, you're going to need to change whatever is stopping you from using separate collision channels as it's the only way I can see of doing this, and it makes it very simple and efficient as well.

If you don't want to rely on the collision, the only thing I could think of is literal frame-by-frame teleportation. This would involve storing the character's position in the last frame, for every frame, and whenever they overlap one of these volumes that they're supposed to be blocked by, have it teleport them back to the previous frame's position. This would involve setting up booleans to track if it should be affecting them by their team affiliation as well and would overall be terribly unoptimized and would probably cause some disorienting gameplay if the person is running into the volume constantly.

more ▼

answered Aug 24 '16 at 02:48 PM

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

I have a solution, it works fine with 4.21.1, but I don't know if it works with other version.

Sulution

more ▼

answered Jan 06 '19 at 04:25 PM

avatar image

FIHOTCOOL
11 2 2 5

(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