Game Development Community

SDirtySetMask in vehicle.cc replaced with what?

by Edward F. Maurina III · in Torque Game Engine · 12/11/2003 (9:07 pm) · 2 replies

Hello. I'm currently adding turrets based on Paul Dana's resource: Turret & AITurret classes and have run into a bit of a snag.

It looks like this code used to exist in the vehicle.cc file:

static U32 sDirtySetMask = PlayerObjectType     |
                           TurretObjectType |
                           VehicleObjectType;

However, in the 1_2++ release of the engine code, this code is MIA.

So what I'm wondering is,

1. Where did it go, or better yet what replaced it?
2. If I wanted to add the equivalent of this:
static U32 sDirtySetMask = PlayerObjectType     |
                           // phdana turrets ->
                           TurretObjectType |
                           // <- phdana turrets
                           VehicleObjectType;

how would I do it?

So, any insight would be greatly appreciated.

Thanks to any taker(s).

[HOW]-Ed

#1
12/11/2003 (9:19 pm)
Sorry folks looks like I found the answer.

The function: getCollisionMask() in vehicle.cc has been made into a pure virtual function, requiring
the children of this class to implement it, which is of course why the mask is no longer needed
in vehicle.cc

Thanks for anyone who did read this. Maybe someone will have the same question in the future.

-ed
#2
05/28/2007 (4:53 pm)
Thanks. Someone else did have that same question in the future. :)