- Home /
Add wind effect to Game Object
I am wanting to add a wind effect to a large projectile while it is in the air so that the path of the projectile is changed whilst in the air.
My wind will be at a certain direction and at a certain strength. After doing research I think using constantForce is the best bet but I am unsure of how to use the two variables input to use contantForce while the object is in the air. Any suggestions??
Answer by robertbu · Jun 20, 2013 at 04:33 PM
ConstantForce is a component you add to your game object. There are four variables you can set. For wind you want to set the one labeled 'Force' to the global direction of the wind. You could also just use a Rigidbody.AddForce() in your FixedUpdate() function of the script attached to the projectile.
Thank you for the explanation! $$anonymous$$akes alot more sense now!