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.

DarkBASIC Professional Discussion / [DarkPHYSICS] Apply wind force to rigod body.

Author
Message
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Apr 2013 18:58
I'll post thus here too as not many people frequent the physics forum...


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]
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Apr 2013 21:04
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]
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
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]
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 1st May 2013 01:30
Fixed.

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

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

Login to post a reply

Server time is: 2026-07-06 18:36:11
Your offset time is: 2026-07-06 18:36:11