top of page
ObjectiveChipmunk CpImpulse
Ian Fan Jan 2012
Target:
Detect the impulse while the ball is hitting the border.
Sample Code:
https://github.com/IanFan/CpImpulse
CpImpulse
Chipmunk logo
Step:
1. Setup ChipmunkSpace, ChipmunkMultiGrab, DebugLayer and update as usual.
2. Setup OcpObject to create the ball, tap the ball will change its velocity.
3. Setup Collision Handler to detect while the ball is hitting the border.
4. When detect it, the background color will be changed and the sound will be made.
Further Link:
1. Searching.
bottom of page