Chipmunk collision types

Chipmunk2D Bindings for the Unity3D engine
Post Reply
compass3
Posts: 37
Joined: Fri Aug 30, 2013 4:27 pm
Contact:

Chipmunk collision types

Post by compass3 »

Hi,
I am currently trying to convert OnCollisionEnter functions into ChipmunkBegin_typeA_typeB functions. Is there any way to implement a function like ChipmunkBegin_typeA_OtherTypes? Because in my game there are a lot kinds of objects, and they need a collision handle functions to a particular collision type like player. I know I can just give all these objects a same collision type. But what if they also need to handle collision with each other? And if I do so, then I need to give almost all object a collision type.
Thanks! :D
compass3
Posts: 37
Joined: Fri Aug 30, 2013 4:27 pm
Contact:

Re: Chipmunk collision types

Post by compass3 »

For example, we have collision types:
player, A, B, C, D, E, F, G.

And the pairs that need to handle are:
player_A
player_theRestTypes
( I mean, player_B, player_C, player_D... but these functions are almost same beside the collision types

and the differences of the types are needed, handle functions also needed for them
A_B
B_C
C_D
....
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests