Hi All,
Been looking at the demo that come with the nvidia sdk and theres one in there showing how to make a vortext but not begin able to read the code it an up hill struggle.
got it to work so far but can't see how to keep it going up for about three rotateion be for falling off.
can anyone see what might be need or added.
Rem Project: phy_vortex1
Rem Created: 01/07/2008 11:37:32
Rem ***** Main Source File *****
sync on
sync rate 60
phy start
autocam off
position camera 0,50,-50
point camera 0,0,0
id=1
make object box id,50,1,50
color object id,RGB(128,0,255)
position object id,0,-1,0
phy make rigid body static box id
inc id
make object sphere id,2
phy make rigid body dynamic sphere id
PHY SET RIGID BODY KINEMATIC ID, 1
_sphere=id
phy create force field 1
PHY SET FORCE FIELD CONSTANT 1, -30, 4.0, 0.0
phy set force field coordinates 1,2
phy set force field position 1,3,0,0
phy set force field rigid body 1,id
phy set force field noise 1,5,5,5
`PHY SET FORCE FIELD LINEAR FALLOFF 1, 5.0, 0.0, 0.0
`PHY SET FORCE FIELD QUADRATIC FALLOFF 1, 5.0, 0.0, 0.0
phy build force field 1
` was phy add force field sphere 1,0,0,-5,0,10
PHY ADD FORCE FIELD CAPSULE 1, 0, -5, 0.0, 10, 15.0, 30.0
time=timer()
do
if timer()>time+100
inc id
make object cube id, .2
position object id,object position x(_sphere),object position y(_sphere), object position z(_sphere)
PHY SET RIGID BODY LINEAR VELOCITY ID, 0.0, 0.0, 30.0
PHY SET RIGID BODY ANGULAR MOMENTUM ID, 1.0, 1.0, 1.0
PHY SET RIGID BODY ANGULAR VELOCITY ID, 0.0, 0.0, 30.0
phy make rigid body dynamic box id
time=timer()
endif
PHY SET RIGID BODY KINEMATIC POSITION _sphere, 0, 0, 0
phy update
sync
loop
edit found the answer add this PHY ADD FORCE FIELD CAPSULE 1, 0, -5, 0.0, 10, 15.0, 30.0
Dark Physics makes any hot drink go cold.