Game Development Community

Collision for objects, without stopping the player's movement

by Clement · in Technical Issues · 01/29/2008 (3:17 am) · 3 replies

I'm trying to create a game where the player has to collect stuff, but it is supposed to be a racing type game, so when I collide with objects to "pick" them up, the player stops moving. This is very bad for the game, is there anyway to prevent the player from the effects of collision, or is there another way to collect the objects besides using the onCollision method?


Thanks for reading

About the author


#1
01/29/2008 (6:11 am)
I don't know if this is the best way but a solution that immediately springs to mind is to use an object without a collision mesh, but create a trigger at the same spot as the object. That way you pass through the object but can put any code you want inside the trigger code.
#2
01/29/2008 (6:31 am)
Use an ITEM type object? I have collision events like you need Clement, useing the ONcollision script callback, and as Eikon mention; no need for collision mesh in the shape.
#3
01/29/2008 (8:56 am)
Hmm. I think I will try without collision mesh in the shape. Will post again if it succeeds, thanks both of you =)