How to find the ground
Posted: Tue Jun 01, 2010 12:38 pm
Hi,
I created a plane in 3DSMAX, in 0,0,0 position. Then I export it to FBX and use that model to create the physical environment in my game (the ground). I translate its world matrix to 0,0,0.
Then I load some cylinder entities and try to put them resting on the floor. Those cylinders have this initialization:
But when I run the project, they "fall" on the floor, instead of rest over it. I can see that I have to put the cylinders aproximately in a Y position between 4.0f and 5.0f, if I want to make them rest on the floor, but I think it's very difficult to find the exact point for this. What am I doing wrong?
Thanks,
JB
I created a plane in 3DSMAX, in 0,0,0 position. Then I export it to FBX and use that model to create the physical environment in my game (the ground). I translate its world matrix to 0,0,0.
Then I load some cylinder entities and try to put them resting on the floor. Those cylinders have this initialization:
Code: Select all
bowl[0] = new Cylinder(new Vector3(-5.0f, 4.0f, -50.0f), 10.0f, 2.0f, 5.0f);
Thanks,
JB