# Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

### Dark Physics & Dark A.I. & Dark Dynamix / [DarkPHYSICS] Apply wind force to rigod body.

Message
Posted: 25th Apr 2013 18:02 Edited at: 25th Apr 2013 18:10
Hello, I'm using DP to simulate a projectile in my game, and I would like to simulate a wind effect. If I apply a linear force to the projectile, rather than bend towards the direction the wind is moving, it just heads the same direction as the wind. (Without any bending) If I apply a linear momentum force, the same happens. If I apply angular force/momentum the projectile just stops in mid air and no longer moves.

What am I doing wrong!?

I use this method to apply the initial force to start the projectile moving:

And this is what I'm using to apply the wind force:

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Posted: 26th Apr 2013 20:23
No-one?

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Posted: 30th Apr 2013 18:04
Anyone?

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Posted: 30th Apr 2013 20:50
Hi Mobiius,

You are not applying forces, you are directly setting velocities and momentums manually, this invalidates and overrides the simulation solver.

You should have commands like PhyAddForce() or PhyApplyForce().
Remember that wind must be applied each frame so it will be a very small value compared to the initial force that moves the projectile.

Posted: 1st May 2013 01:30
Thank you for taking the time to reply.

Phy Add Rigid Body Force At Local was the command I needed.

Thanks a bunch for your help.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]