Game Development Community

Object Types question.

by Chris "Dark" Evans · in Torque Game Engine · 07/10/2002 (2:24 pm) · 1 replies

I'm making a climbable object, it can be used for ladders vines, ropes, etc.

I have a couple of questions though.

Do I need to define a ClimbableObjectType in ObjectTypes.h? I haven't made any new objects yet, so I'm a noob to this :)

I'm copying the layout of the staticShape files. I noticed that mTypeMask is defined as "StaticShapeObjectType | StaticObjectType." Should I leave it as that, or try and define a new ClimbableObject type?


I'm making this code very dynamic, and I want to submit it as a resource when it's finished.

#1
07/10/2002 (3:33 pm)
yes, you better define it there, so you will be able to check what type of object the player has collided with, if it's a climbable object u want the player to climb it... if it's a vehicle you want the player to mount it, etc..
Checl all the instances of VehicleObjectType for example to see how it works.