Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,359 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ballistics / bullet drop simulation #126871
04/27/07 18:45
04/27/07 18:45
Joined: Aug 2006
Posts: 41
Racine, WI, USA
dreadFusemonkey Offline OP
Newbie
dreadFusemonkey  Offline OP
Newbie

Joined: Aug 2006
Posts: 41
Racine, WI, USA
I'm not sure if this is a physics question or a general c-script question. I guess it depends on if there is any support for this type of thing in either Newton or A6.5 physics, or if I have to simulate from scratch.

Anyway, I don't want to go the straight-line "laser" option when firing bullets. Instead, I want to simulate the arc path of a bullet. Gravity pulls the bullet down, and where it actually hits the ground depends on how fast it is going, the angle at which it was discharged, etc...

I already have a script that fires bullet models from a gun, but I haven't been able to simulate the arc. Anybody have experience or ideas on how I would go about doing this?

thanks


To crush your enemy...see them driven before you, and to hear da lamentation of da vimmen!
Re: ballistics / bullet drop simulation [Re: dreadFusemonkey] #126872
04/28/07 04:34
04/28/07 04:34
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I'd recommend not using physics for the bullet, but simply calculating your own projectory physics through c-script. Then do a trace before moving. If you hit a [newton] entity, then do as they did and create an impulse with newton.


xXxGuitar511
- Programmer
Re: ballistics / bullet drop simulation [Re: dreadFusemonkey] #126873
05/10/07 13:57
05/10/07 13:57
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Quote:

I already have a script that fires bullet models from a gun, but I haven't been able to simulate the arc. Anybody have experience or ideas on how I would go about doing this?




Yeah, it's easy, just make sure to subtract an increasing value from the bullets height, that'll give the effect you're looking for and cause this arc of the bullets flight.

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1