Game Development Community

How to set collision of player off ?

by delinkx · in Technical Issues · 08/14/2008 (3:27 am) · 2 replies

Anyone knows how 2 set the collision detection off of a player or AI player.

I want one player to pass through the other player. How do I make the player passable through ? any suggestions on how this can be done ?

#1
08/14/2008 (5:26 am)
Around line 139 of Player.cc (TGE) you'll find this:
static U32 sCollisionMoveMask = (TerrainObjectType      | InteriorObjectType   |
                                 WaterObjectType        | PlayerObjectType     |
                                 StaticShapeObjectType  | VehicleObjectType    |
                                 PhysicalZoneObjectType | StaticTSObjectType);

Just remove "PlayerObjectType".
#2
08/14/2008 (7:46 pm)
Ok. .for this i need 2 rebuild the engine right ? and all players' collision will be set off.. there wont be any control over the collision using scripting.

wat i would hv liked it.. during scripting.. i make some players with collision off.. some on.

Its like when u take a "super-power" pickup, u become semi invisible kind, and can pass through obstacles. Like in super mario.

is there any way 2 control tat through some flags in scripts.