Physx Objects
by TigerHeros · in Torque 3D Professional · 11/18/2010 (6:41 pm) · 1 replies
I have some questions regarding Physx objects.
I have a box model with a collision node. I set up the box with this datablock :
datablock PhysicsShapeData(Box1)
{
category = "Physics";
shapeName = "art/shapes/cube/cube.dts";
emap = 1;
mass = 5;
massCenter = "0 0 0"; // Center of mass for rigid body
massBox = "0 0 0"; // Size of box used for moment of inertia,
invulnerable = true;
};
I then use box.applyimpulse(box.getposition(),"10 0 0")
to try and move the box in the positive X direction. The problem is that the box also rotates some small amount and results in a slightly different direction than intended.
I also want the box to have zero friction, is this possible? I took out all elements of the data block that would seem to indicate drag or friction but the box still stop at some point.
I have a box model with a collision node. I set up the box with this datablock :
datablock PhysicsShapeData(Box1)
{
category = "Physics";
shapeName = "art/shapes/cube/cube.dts";
emap = 1;
mass = 5;
massCenter = "0 0 0"; // Center of mass for rigid body
massBox = "0 0 0"; // Size of box used for moment of inertia,
invulnerable = true;
};
I then use box.applyimpulse(box.getposition(),"10 0 0")
to try and move the box in the positive X direction. The problem is that the box also rotates some small amount and results in a slightly different direction than intended.
I also want the box to have zero friction, is this possible? I took out all elements of the data block that would seem to indicate drag or friction but the box still stop at some point.
Torque Owner TheGasMan
G.A.S. [+others]
1. check your box's transform location and set the object's transform and the bounds transform in their centers and then reexport the model
2. look at the 1.0.1 physX material implementations and test to see if they are carried over to 1.1Bx.
3. Cross your fingers and keep testing.