Rotate Collision

creativeappscreativeapps Member Posts: 1,770
edited November -1 in Working with GS (Mac)
I have one ball and its collide with + sign stick in black. And its continue rotate. But I have collide rule. so its collide with + sign transperant areas. How do I avoid it? Please let me know. Thanks.

image

Comments

  • creativeappscreativeapps Member Posts: 1,770
    What are the rules for constrain rotatation together? Please let me know I am trying but to getting success
  • rlehmrlehm Member Posts: 320
    See my example of how to constrain the actor here:

    http://gamesalad.com/forums/topic.php?id=25868

    you will need to draw two rectangles and constrain them to this actor and add collision rules to them instead. Then it will not collide with clear areas.

    you will also need to go into the actors rules and add rotate so they line up correctly.

    The true test will be getting it to rotate correctly if you have the rotate rules to both rectangles and the ball hits both.

    You may want to add a new attribute, call it hit or something, and on collision change attribute hit to true, and then a rule, if hit is true, rotate... otherwise, hit=false
Sign In or Register to comment.