I have a box collider that is a trigger, I would like to add additional downforce to any rigidbody that enters the trigger and remove the additional downforce once it exits the trigger. Any ideas on how to do this?
you could use OnTriggerStay and call AddForce on the rigidbody that entered.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
155 People are following this question.
getComponent().Velocity always returns 0?
How to make a ball able to go anywhere on my "field"??
Adding Force over network
Script makes plane point in general direction but doesn't point fully... read description please!
Best way to implement a trap that activates as player runs past it?