Post by BLowe on Mar 29, 2006 4:10:46 GMT 1
I'd like to create a Newton box that has some specific properties about it. I have used these commands:
NDB_CalculateMIBoxSolid 1115.00, 100.0, 50.00, 10.00
NDB_NewtonBodySetMassMatrix Nobj, 1115.00
to create the 'standard' Newton box, but I'd like my box to be a little bit different. I need for my Newton box to be 'bottom heavy', and thus be very hard (or impossible) to tip over. The box is such that it is a thin box that rests (sort of) on its narrow edge, but it is a wide box. It is not affected by gravity, so it hovers above the ground (or 'floor', as in Newton demo's), so I don't have to worry about it coming into contact with the ground and tipping over that way. But it DOES move along the ground, and whatever objects it comes in contact with should be pushed along with it, sort of like plow. As it is, when the box contacts objects, it spins and loses its ability to plow.
I figured the best way to solve it is to make the box have its Moment of Inertia as close to the bottom edge as possible, because that would make the box nearly impossible to tip over because most if not all of the contact with the plowed objects will be along the bottom 10% of the box (if they happen to pile up, that is).
The box is 100,50,10 in size terms. I tried using the NDB_NewtonBodySetMassMatrix Nobj, 1115.00,xx,yy,zz command with my own custom values to try to create the effect, but I couldn't figure where I should place its Moment of Inertia. The box is being created at 0,0,0, so should I use something like:
NDB_NewtonBodySetMassMatrix ChipRake, 1115.00, 0, -25, 0
Or can anyone tell me if this can be done?
NDB_CalculateMIBoxSolid 1115.00, 100.0, 50.00, 10.00
NDB_NewtonBodySetMassMatrix Nobj, 1115.00
to create the 'standard' Newton box, but I'd like my box to be a little bit different. I need for my Newton box to be 'bottom heavy', and thus be very hard (or impossible) to tip over. The box is such that it is a thin box that rests (sort of) on its narrow edge, but it is a wide box. It is not affected by gravity, so it hovers above the ground (or 'floor', as in Newton demo's), so I don't have to worry about it coming into contact with the ground and tipping over that way. But it DOES move along the ground, and whatever objects it comes in contact with should be pushed along with it, sort of like plow. As it is, when the box contacts objects, it spins and loses its ability to plow.
I figured the best way to solve it is to make the box have its Moment of Inertia as close to the bottom edge as possible, because that would make the box nearly impossible to tip over because most if not all of the contact with the plowed objects will be along the bottom 10% of the box (if they happen to pile up, that is).
The box is 100,50,10 in size terms. I tried using the NDB_NewtonBodySetMassMatrix Nobj, 1115.00,xx,yy,zz command with my own custom values to try to create the effect, but I couldn't figure where I should place its Moment of Inertia. The box is being created at 0,0,0, so should I use something like:
NDB_NewtonBodySetMassMatrix ChipRake, 1115.00, 0, -25, 0
Or can anyone tell me if this can be done?