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 make bullet to collide with wall when you are close to it?

Hi My question is that I have created a weapon that fires a bullet.The problem is the bullet collide with the wall when you are at a proper distance but when you get close to the wall the bullet penetrates the wall and keep moving until it collides when another wall.

Please let me know the solution to this problem.

Thanks in advance

Product Version: UE 4.17
Tags:
more ▼

asked Oct 10 '17 at 05:27 PM in Blueprint Scripting

avatar image

un1234
1 1

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

1 answer: sort voted first

I put a collision on the gun. You can set it so if it hits something you can play a arms animation to move out of the way. The cool thing about it is you can hit things with physics with your gun lol

more ▼

answered Oct 10 '17 at 07:29 PM

avatar image

viggerz
26 2 2

avatar image un1234 Oct 11 '17 at 07:44 AM

Thanks But i don't understand what u r trying to say.I have collision enabled on gun and on bullet but the bullet won't collide when u r close to the wall.And how to set physics to gun.If i do that my gun will fall down because of the gravity.

(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