Game Development Community

Ground contact.

by Sangwoo Hong · in Artist Corner · 10/08/2004 (3:30 pm) · 5 replies

The character I'm currently working with is shorter then 1 unit. When I look at the character from 3rd person view I can clearly tell that it is floating off the ground...

What are people's solutions for this? Is this something that just can't be avoided since the terrain is being used as a collision mesh which always keeps the player character a certain height off the ground? Is there a number that allows me to tweak this distance?

How about animating character so the feet dangle past the floor of the bounding box? Or raising the bounding box up a little?

#1
10/15/2004 (3:29 am)
For the floating make sure when you export you character you have "Collapse Transform" turned off and when making your animations and exportiing your DSQ's make sure Collapse Transform is turned on. If not you could get the floating effect. Most of the time thats the problem but it could be somthing else I couldn't tell ya unless I had more detials.

Matt
#2
10/15/2004 (6:30 am)
Try looking at the pivot/tranform node location of the "bounds" shape, it should be located right at the bottom of the characters feet in your scene. When your character is loaded into the game, the engine uses this exact position of the bounds pivot/transform node to place your model in the scene. So as you see, if the bounds pivot/tranform isnt set right, you can end up with a floating character.

Also are you trying to force the default Torque sequences onto him?
#3
10/15/2004 (8:55 am)
No I am not trying to force the default torque sequence on to my character. The bounding box is sitting on the ground and my character's feet are on the ground too.

I did notice that even the default character floats off the ground a little. I think it's more noticeable for my character since it's only half the height of the orc...
#4
10/16/2004 (2:38 am)
I think it averages the bounds out and sets the bounds on the terrain. So if you have a corner that is starting to go up hill then character will start to float. Maybe make your bounds smaller for a test and see if that has effect. In fact Unlink your bounds and reset the Xform to make sure if that any scaling takes. I have the feeling he's floating cause the bounds is to big.

From looking at the ORC here for a minute I am pretty sure the bounds of the character will not go through the terrain. If your have a large bounding box then your gonna float more say on the way up a hill.

Just somthing to try, that and what I mentioned above.

Let us know

Matt
#5
10/16/2004 (3:37 am)
I agree with those observations. If you turn on your bounding boxes while playing you can slowly walk up some stairs and you will easily see that when the edge of the bounds box hits the step, the entire character will 'step up' with the box leaving you floating above the stair you are currently standing on at the height of the stair your box is sitting on.