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.

Dark Physics & Dark A.I. & Dark Dynamix / phy make rigid body dynamic convex dose not inklud the glued on object

Author
Message
Slaid
19
Years of Service
User Offline
Joined: 7th Nov 2005
Location: Vallsjobo, Sweden
Posted: 14th Nov 2007 17:52
I load an object, my tank. Then use "glue object to limb" to place the turret. Then "phy make rigid body dynamic convex", but only the body of the tank is affected by forces. For example the Body cann't go though a tree on the landscape, but if I park next to a tree the turret can turn and pass right though.

Here the creation code I used...Hope this works


Thanks for any help

May the sun shine on the soles of your feet.
Slaid
19
Years of Service
User Offline
Joined: 7th Nov 2005
Location: Vallsjobo, Sweden
Posted: 14th Nov 2007 18:00
[ c o d e ] rem Objects 101 to 200
load object "Models\PzKwIIIm\OriginalPIII_TL.x",ob101
rem positon it before physic's takes over so we can glue stuff to it
position object ob101,d#,e#,f#
`################add turret################################
rem add the turret by making a limb and glueing it to the limb
load object "Models\PzKwIIIm\Turret_test_P3.x",600
make object box 102,1,1,1
make mesh from object 310,102
delete object 102

perform checklist for object limbs ob101
turretBone = checklist quantity()
rem now we can remeber what bone the turret is attached to
add limb ob101,turretBone,310
link limb ob101,1,turretBone
offset limb ob101,turretBone,0,6,4
position object 600,0,-6,0
glue object to limb 600,ob101,turretBone


addTracks_2()

rem Here we build the physic mesh and add what material it is
phy make rigid body dynamic convex ob101,b[ / c o d e ]

May the sun shine on the soles of your feet.
Slaid
19
Years of Service
User Offline
Joined: 7th Nov 2005
Location: Vallsjobo, Sweden
Posted: 14th Nov 2007 18:02
Just trying to figure out how to make a code snippet....???



May the sun shine on the soles of your feet.

Login to post a reply

Server time is: 2024-11-24 20:20:01
Your offset time is: 2024-11-24 20:20:01