- Home /
Wind that push a character when enter in a trigger zone
Hi!
I just try to make my character move against the wind when he is at a certain point in the game.
I know that I have to set up some trigger zone , but I don't know how to link them and start the wind when the character enter in this zone.
I really suck in scrippting. I just took a look at this : http://answers.unity3d.com/questions/31872/wind-forcing-on-a-charactercontroller-object.html , but it don't look like it's woorking for me.
Can someone have an idea to help me?
Just to figure out ..
I have a var windDirection = Vector3.zero; on my trigger object. Now, i just try to add some On trigger enter rigidbody.addforce (to my third person script) but it don't seam to work..
Nobody have an idea of what make my things dosen't work?
is there any way to add force on a character controller?
Nobody??
You are not getting any replies because you answered your own question, so people are not co$$anonymous$$g here to look.
Please don't post comments as answers. Post comments by clicking the [add new comment] button, a window then open for you to type in. Answer fields are for answers only, as this is a knowledge base.
Here at Unity Answers, Answer means Solution, not Response.
You can convert this answer to a comment (or just edit your original question), you'll also get a better chance of getting an actual answer if the main list shows none or one answer in blue =]
Under the answer where it says edit | delete | more , click on more , then convert to comment
Also you don't have to wait for a moderator to approve a comment.
Watch : http://video.unity3d.com/video/7720450/tutorials-using-unity-answers
TeddyChance :
Just to figure out ..
I have a var windDirection = Vector3.zero; on my trigger object. Now, i just try to add some On trigger enter rigidbody.addforce (to my third person script) but it don't seam to work..
Nobody have an idea of what make my things dosen't work?
is there any way to add force on a character controller?
Nobody??
$$anonymous$$e : to use AddForce, you need to have a rigidbody component.
Ok, i just try with rigidbody . The force work but the animation of my character not
Your answer
Follow this Question
Related Questions
Applying force to character inside trigger 2 Answers
bizarre collision modulations with character controller 1 Answer
CharacterController falls through or slips off moving platforms 2.0 2 Answers
CharacterController vs Rigidbody (photo included) 2 Answers
Which character control method to use to constrain the movement to a circular path? 0 Answers