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"

Physics based projectiles?

Is there a way to make a projectile object react to physics? I am trying to create throwing knives that will have a low trajectory and then will cause the object to bounce off the floor. I added the bounce option to the projectile but it doesn't rotate correctly.

I suppose I could just spawn a physics object and immediately add torque and impulse to it. My only concern is getting this movement to replicate properly. What would be the best way to accomplish this?

Product Version: UE 4.11
Tags:
more ▼

asked Apr 04 '16 at 04:45 PM in Using UE4

avatar image

BiznessMan
26 2 4 6

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

1 answer: sort voted first

You can absolutely have physics enabled and a projectile component. Make sure your knife has a capsule collision or any collision object, and you should have bounces.

This solution shows how to orient the projectile in the direction of travel https://answers.unrealengine.com/questions/264162/rotate-projectile-towards-forward-vector.html

more ▼

answered Apr 04 '16 at 09:43 PM

avatar image

keyle
1.8k 65 27 89

avatar image BiznessMan Apr 04 '16 at 11:39 PM

Thank you! My only question would be what do I assign the pitch variable to? Would I have to set up a tick event to feed the object's rotation into the variable?

avatar image keyle Apr 04 '16 at 11:46 PM

Yes you could have a float variable for the pitch.

(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