Game Development Community

Is there a simple way to alter player model vertical position?

by Glynn James · in Torque Game Engine · 10/22/2005 (7:47 am) · 5 replies

Hi,

well i scaled down the player model (0.4 0.4 0.4) to make the world appear bigger but now the player model floats a long way off of the ground

I understand from what ive read sofar there is a node that the engine uses to float the player model on , now i havent really figured out modelling at all yet so is there a way to alter the position of the model using this node?

ie. if the node is half a foot below the terrain and thats what the engine floats the player on can i adjust the positioning so that, say it floats it half a foot below instead? this woul dmake my model run over the terrain rather than run a foot or so above it.

Im not fussed at the moment about hugging the model's feet to the terrain or anything, just making it stick to the terrain a bit better.

Simplified, can i alter the vertical positioning of the player model in the game script?

#1
10/22/2005 (7:48 am)
Sorry rephrase

ie. if the node is half a foot below the **MODEL** and thats what the engine floats the player on can i adjust the positioning so that, say it floats it half a foot below instead? this would make my model run over the terrain rather than run a foot or so above it.
#2
10/22/2005 (8:42 am)
The node is "Root". Is this the standard "orc" model?
#3
10/22/2005 (8:55 am)
Yes sorry its the standard orc model
#4
10/22/2005 (8:56 am)
You possibly could change the pivot (the node you're referring to) in script and or code. It would be much easier to do so on export though. How, will depend on which modeler you are using, whether the animations are using ground transforms, etc.
A bit more info on the model itself would be of great help....
#5
10/24/2005 (1:20 am)
Sofar im really only playing arround with the standard install of tge
so the model im using is the same default orc that comes with that.
all i have done sofar is sacle the orc down (0.4 0.4 0.4) and later the max camera distance (to 9) and played arround with terrain editing/textures etc.

What ive found with this is that if running on a flat surface the model is only very slightly hovering above the ground - enough that its not really noticable, but then i run the player up a slope there is this huge floating gap between the model and the ground.

I was just curious what it was that sets the distance between the model and the ground.

Ive not figured out about modelling the player much yet, though i do have milkshape to play with at some point.

what i was looking for was a way to make the figure hug the ground a bit better, mainly on the slopes, im not fussed about getting it to alter leg position to account for slopes, just getting it to run closer to the slope would be enough.

ill have a look at what the pivot you mention does, but im not sure what else i can offer on here to help describe the problem since im pretty new to torque anyway.