It's always nice to hear stuff from you Hawkeye. I await eagarly for your next composition
.
Just to let everyone know, I haven't been slacking off for the last few days, in fact I've been busy re-writing the object.dba module (now called objects.dba). The module is essentially the same (although completely re-written), but neater and more refined. It is actually more functional now than it was before. All types of Newton bodies and joints are supported now in a neat file format. Here is an example of a file.
JointTest.boo (B.lack O.ut O.bject)
//Joint test for object file
name Joint Test Object
//Two normal sized crates to be connected with slider joint
body Wooden Crate
model Media\crates\cratenew.dbo
type 2
material Wood
gravity 1
bouyancy 1
mass 40
autoinertia 1
inertia 0,0,0
damping 0.1,0.1
offset 0,0,0
rotoffset 0,0,0
scale 6,6,6
endbody
body Wooden Crate 2
model Media\crates\cratenew.dbo
type 2
material Wood
gravity 1
bouyancy 1
mass 40
autoinertia 1
inertia 0,0,0
damping 0.1,0.1
offset 0,40,0
rotoffset 0,0,0
scale 6,6,6
endbody
//Flat crate to be connected with hinge joint, as if on pivot
body Wooden Crate 3
model Media\crates\cratenew.dbo
type 2
material Wood
gravity 1
bouyancy 1
mass 20
autoinertia 1
inertia 0,0,0
damping 0.1,0.01
offset 0,61,0
rotoffset 0,0,0
scale 6,2,6
endbody
//Small crate to be connected to flat crate with ball joint
body Wooden Crate 4
model Media\crates\cratenew.dbo
type 2
material Wood
gravity 1
bouyancy 1
mass 10
autoinertia 1
inertia 0,0,0
damping 0.1,0.01
offset 0,75,0
rotoffset 45,45,0
scale 3,3,3
endbody
//Joints
joint Slider
type 3
parent Wooden Crate
child Wooden Crate 2
offset 0,0,0
limits1 -20,20
collision 1
endjoint
joint Hinge
type 2
parent Wooden Crate 2
child Wooden Crate 3
offset 0,61,0
limits1 0,0
collision 0
endjoint
joint Ball
type 1
parent Wooden Crate 3
child Wooden Crate 4
offset 0,75,0
limits1 0,0
collision 0
endjoint
Just load it up and you have a stack of crates all connected with different joints
. I have made a simple object viewer that I will upload soon, then the new module will be integrated into the rest of the source code (functions have slightly different names, and module works slightly differently).
I seem to have a habit for re-writing bits, although I think I must be mastering something slowly as we are progressing (slowly
).