Game Development Community

Handling different modes of transportation

by Neil Marshall · in Torque Game Engine · 12/07/2001 (4:09 pm) · 1 replies

If I were going to model a bike or a car, I'm sure I would use the vehicle code. But what if the transportation device needed to be attached to each foot seperatly, like shoes, rollerskates, skiis, etc?

Should I be handeling those as if they are "weapons" attached to dummy objects and then handle the character movement as if they are on a vehicle? Or is there some other way to do it?

#1
12/10/2001 (11:11 am)
There are several ways to handle this. You could simply modify the player code to behave differently when "wearing" the skis, or you could have a snowboard vehicle and mount the player. You could also have an invisible vehicle which provides physics and have the roller blades (or skis) be cosmetic (as mounted items).

Seems like all of the physics you mention would want to be closely tied to how the player is animating, you may just want to add the new physics directly into the player class.