Player or Vehicle?
by Tom Kidd · in Torque Game Engine · 02/12/2002 (8:26 am) · 2 replies
Without spilling all the beans, my game involves, amongst other things, maneuvering a small tank-like robot. It's a player, but it's also a vehicle.
There is a player type out there I could modify to the point of being a vehicle (I started on this), and there's a vehicle type out there I could modify to the point of being a player. I basically need a mix of the two (I think) and I'm not sure which would be better to start on. I have the player model replaced by the small robot vehicle, which is fine unless you're on a non-flat surface, in which it obviously looks retarded since it's parallel to sea level, not the surface it's on (like a mountain or an incline), so I need to figure out how to make the model adjust to the ground. I figure a vehicle (the wheeled kind that runs along the ground, not the kind that flies) would know how to do this, but I'm not sure how far along they are.
So any advice on whether starting from the player type and making it into a vehicle, or taking the vehicle and making it into a player would be more sensible?
Schnapple
There is a player type out there I could modify to the point of being a vehicle (I started on this), and there's a vehicle type out there I could modify to the point of being a player. I basically need a mix of the two (I think) and I'm not sure which would be better to start on. I have the player model replaced by the small robot vehicle, which is fine unless you're on a non-flat surface, in which it obviously looks retarded since it's parallel to sea level, not the surface it's on (like a mountain or an incline), so I need to figure out how to make the model adjust to the ground. I figure a vehicle (the wheeled kind that runs along the ground, not the kind that flies) would know how to do this, but I'm not sure how far along they are.
So any advice on whether starting from the player type and making it into a vehicle, or taking the vehicle and making it into a player would be more sensible?
Schnapple
About the author
#2
What I did, is that I create a new class AirPlane which has some functionnality of the player class and some of the vehicle class. However, be careful, because you will have to change many things in the C++ code and in the CS code (ie, class name in the script, node/anim if you do not use 'torque-like' 3D model, ...)
02/12/2002 (9:53 am)
My game involves piloting plane. What I did, is that I create a new class AirPlane which has some functionnality of the player class and some of the vehicle class. However, be careful, because you will have to change many things in the C++ code and in the CS code (ie, class name in the script, node/anim if you do not use 'torque-like' 3D model, ...)
Torque Owner Tom Kidd
Schnapple