Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Apple iPhone/iPad/iPod

How To Get Sub Object onCollition  [SOLVED]

iOS Development and xCode questions

How To Get Sub Object onCollition

Postby 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
Fresh Boarder
 
Posts: 18

Re: How To Get Sub Object onCollition  [SOLVED]

Postby 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.
User avatar
dbladez
Platinum Boarder
Platinum Boarder
 
Posts: 679
Location: Ontario, Canada

Re: How To Get Sub Object onCollition

Postby d4dhanuj » 30 Nov 2011, 09:48

I hope its not working out
d4dhanuj
Fresh Boarder
Fresh Boarder
 
Posts: 18

Re: How To Get Sub Object onCollition

Postby d4dhanuj » 30 Nov 2011, 10:32

oh I am sorry for the previous post its working thankyou.
d4dhanuj
Fresh Boarder
Fresh Boarder
 
Posts: 18


Return to Apple iPhone/iPad/iPod