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"

Creating collisions in c++

I am a beginner and i am trying to create collisions between my boxes so they crash into each other to activate if's but i don't know how to create collisions to actually make them collide and then connect said collision to an if so when they do collide it will activate the if.

Product Version: UE 4.14
more ▼

asked Feb 16 '17 at 02:48 PM in Using UE4

avatar image

1 1 2 2

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

1 answer: sort voted first

Have you read the Collision Overview documentation? It goes over setting up a simple collision.


Let me know if you have any specific questions afterwards.

more ▼

answered Feb 16 '17 at 04:02 PM

avatar image

1.6k 34 14 48

avatar image wickling1 Feb 16 '17 at 05:38 PM

Thanks it did help but i still need to set it up for in visual studio . I think to be more specific i need to know how to set up the OnHitComponent i know about it and how it wjorks, but i just draw in a blank on how to write it down

Edit: Okay im an idiot im a complete idiot i literally just had to call sweep and then figured out all i had to do for that was just write true after the fvector in worldoffset but i still gotta find a way to put a condition in if so the bool changes from true to false whenever it crashes into anything

avatar image ExtraLifeMatt Feb 16 '17 at 08:33 PM

You might want to look into the OnActorBeginOverlap which is called anytime one actor's physics volume overlaps with another.


(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