Just in need of help for a few things:
- I'm unsure as to how I create a rigid body
- Is this the correct code to recreate the following:
Original:
if object exist(physicsuniverseobj)=1 then delete object physicsuniverseobj
phyunimesh$="levelbank\testlevel\universephy.dbo"
if file exist(phyunimesh$)=0
load object "levelbank\testlevel\universe.dbo",physicsuniverseobj
make mesh from object physicsuniverseobj,physicsuniverseobj
convert mesh to vertexdata physicsuniverseobj
delete object physicsuniverseobj
make object physicsuniverseobj,physicsuniverseobj,0
delete mesh physicsuniverseobj
rem FPSCV104RC9-accelerate loading
save object phyunimesh$,physicsuniverseobj
else
load object phyunimesh$,physicsuniverseobj
endif
debugviewtext(321,"Created static geometry for physics universe")
ode create static triangle mesh physicsuniverseobj
delete object physicsuniverseobj
if physicsproto=1
load static objects "levelbank\testlevel\universe.dbo",0
endif
debugviewtext(322,"Submitted geometry to physics engine")
Dynamix:
if object exist(physicsuniverseobj)=1 then delete object physicsuniverseobj
phyunimesh$="levelbank\testlevel\universephy.dbo"
if file exist(phyunimesh$)=0
load object "levelbank\testlevel\universe.dbo",physicsuniverseobj
make mesh from object physicsuniverseobj,physicsuniverseobj
convert mesh to vertexdata physicsuniverseobj
delete object physicsuniverseobj
make object physicsuniverseobj,physicsuniverseobj,0
delete mesh physicsuniverseobj
rem FPSCV104RC9-accelerate loading
save object phyunimesh$,physicsuniverseobj
else
load object phyunimesh$,physicsuniverseobj
endif
debugviewtext(321,"Created static geometry for physics universe")
dyn make triangle mesh physicsuniverseobj,phyunimesh$
delete object physicsuniverseobj
if physicsproto=1
load static objects "levelbank\testlevel\universe.dbo",0
endif
debugviewtext(322,"Submitted geometry to physics engine")
-TZK