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!
Chipmunk collision types
-
- Posts: 37
- Joined: Fri Aug 30, 2013 4:27 pm
- Contact:
-
- Posts: 37
- Joined: Fri Aug 30, 2013 4:27 pm
- Contact:
Re: Chipmunk collision types
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
....
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
....
Who is online
Users browsing this forum: No registered users and 19 guests