I stumbed across the OEM commands and thought that might be a good way of simulating ballistics. I'm just trying the get the shell to fire in an arc out of it's barrel and to the ground,
I'm trying to use the apply force command but the shell stays still.--->
Rem Project: balistic test
Rem Created: 9/7/2006 8:26:20 PM
Rem ***** Main Source File *****
Set Display Mode 1024,768,32
Sync On
REM varibles
shell#=100000
bp#=45
` Create the ODE World
ode start
ode set world gravity 0,-20,0
ode set world step 0.05
ode set world erp (0.2)*2.5
ode set world cfm (10^-5)*2.5
MAKE CAMERA 1000
POSITION CAMERA 1000, 2,2, -5
POINT CAMERA 1000, 0, 0, 0
MAKE LIGHT 1
POSITION LIGHT 1, 0, 20, 20
POINT LIGHT 1, 0, 0, 0
SET DIR "Media"
LOAD IMAGE "ground_tex.jpg", 1,0
MAKE OBJECT PLAIN 1, 1024, 1024
XROTATE OBJECT 1, 90
TEXTURE OBJECT 1, 1
LOAD OBJECT "base.X", 2
LOAD OBJECT "barrel.X", 3
PITCH OBJECT UP 3, bp#
LOAD OBJECT "shell.X", shell#
ode create dynamic box shell#
YROTATE OBJECT shell#, 180
PITCH OBJECT UP shell#,bp#
LOAD OBJECT "pln.X", 4
SCALE OBJECT 4, 5000, 5000, 5000
` Add friction to our objects
ode set contact fdir1 shell#, 20.0
do
print shell#
if SPACEKEY()>0 then GOSUB _shoot
sync
loop
_shoot:
TEXT 100,20,"BOOOOOM"
ode add force shell#, 100,0,100,0,0,0
shell#=shell#+1
RETURN
I've uploaded the project and it's media,
Thanks for your insight guys, JABBER