Can actors be 'directional'?
auriclux
Member Posts: 16
Can I apply rules directionally between actors? Think of popping a balloon with a pin: The pin has a head and a point, if my balloon collides with the head, it would bounce, but if it collides with the point it would pop.
Any thoughts on how to do this?
Thanks.
Any thoughts on how to do this?
Thanks.
Comments
Make sure the image of the pin starts with the pointy end facing the "0" direction - directly to the right like this: ---->
Then you can do whatever pin movement you want.
Test if the pin's rotation is within 180 degrees of the angle between the balloon and the pin, and if the pin is overlapping the balloon. That means the pointy end is facing toward the balloon and its time to pop.
Thanks.