0
0

Hi guys,i am making a small 2D game.This game is based on object rotation.Assume 3 object A B C will be there,i can select A B or C & then rotate it.The Rotation of an object will force other object to be rotate with a fixed value given by me.So how can i accomplish this? i need good suggestion

Thank you for ur time :)

• You must to post comments
0
0

A simple trick i used in my game Climb The Squares was setting a wake up distance for an object based on interaction with a previous object before it. What this means in your case is, if object A has being collided with and is rotating, set a wakeup distance for object B at the exact moment you collide with A , so the moment you collide with A, B starts rotating. For example, if B is 200x away from A and you want B to starting rotating when you collide with A, set B wakeup distance to 200 or 25O, so at that moment you collide with A, A starts rotating and B also rotates. Note you can set A wakeup to collision or distance based but B must be set to wakeup for the effect to happen simultaneously. You also have to tweak the values till you get the exact illusion you desire.

Hope this helped :)

• You must to post comments
Showing 1 result