ShiVa3D
How To Get Sub Object onCollition [SOLVED]
iOS Development and xCode questionsHow To Get Sub Object onCollition
by d4dhanuj » 30 Nov 2011, 06:02
Hai, I am new to the game industry so my doubt some time will seem to be silly, my doubt is regarding the identification of sub objects. I am making a game in which an arrow hits a target board and this target board contains many sub objects I have to identify which of the sub object has been hit. Is there any way to identify this sub object pls help me out.
- d4dhanuj
- Fresh Boarder

- Posts: 18
Re: How To Get Sub Object onCollition [SOLVED]
by dbladez » 30 Nov 2011, 09:11
Your best bet is to research into.
http://www.stonetrip.com/developer/doc/api/onSensorCollisionBegin
Setup multiple sensors on your target object., then you can just detect which sensor ID was hit.
When the target is hit, that handler will get called and then a few if's later your golden.
http://www.stonetrip.com/developer/doc/api/onSensorCollisionBegin
Setup multiple sensors on your target object., then you can just detect which sensor ID was hit.
When the target is hit, that handler will get called and then a few if's later your golden.
-

dbladez - Platinum Boarder

- Posts: 547
- Location: Ontario, Canada
Re: How To Get Sub Object onCollition
by d4dhanuj » 30 Nov 2011, 10:32
oh I am sorry for the previous post its working thankyou.
- d4dhanuj
- Fresh Boarder

- Posts: 18
4 posts
• Page 1 of 1