Disabling Default Torque Physics
by RazorWing · in Technical Issues · 08/25/2005 (1:19 pm) · 5 replies
Hello,
I am currently trying to create a starship, that will float above the terrain in the tutorial.base project. I have tried modifying physics, but the character always seems to go back to the ground, due to gravity. I want the player to have the ability to move freely, like a starship on Eve online, or any other game that has a flying vehicle.
Can anyone help?
I am currently trying to create a starship, that will float above the terrain in the tutorial.base project. I have tried modifying physics, but the character always seems to go back to the ground, due to gravity. I want the player to have the ability to move freely, like a starship on Eve online, or any other game that has a flying vehicle.
Can anyone help?
#2
Now, the problem is that the character wont move at all when it's not on land. What should I do with that? I want it to be able to move around anywhere, freely...
08/26/2005 (9:43 am)
Okay, I went into the 'player.cc' file and changed the 'F32 Player::mGravity;' variable from '-30' to 0.Now, the problem is that the character wont move at all when it's not on land. What should I do with that? I want it to be able to move around anywhere, freely...
#3
It's time to get real friendly with the Player::updateMove function in player.cc
I have had to recode about 70% of it to get the kind of behavior that I want.
Your issue is that the default code does not allow movement unless it is on the ground. Look for "if (runSurface) {"
Thanks.
08/26/2005 (2:19 pm)
RazorWing,It's time to get real friendly with the Player::updateMove function in player.cc
I have had to recode about 70% of it to get the kind of behavior that I want.
Your issue is that the default code does not allow movement unless it is on the ground. Look for "if (runSurface) {"
Thanks.
#4
08/26/2005 (2:43 pm)
Thanks, thats all I needed
#5
Wouldn't you be better off using a FlyingVehicle?
08/26/2005 (5:14 pm)
www.garagegames.com/mg/forums/result.thread.php?qt=32256Wouldn't you be better off using a FlyingVehicle?
Torque Owner J. Alan Atherton