0 Favourites

How do I update position to account for rotation of platform

  • I got a circular disk and It rotates

    object.angle += 10 every second

    so the objects that go on it I just set its angle to the thing its rotating buut the position doesnt stay relevant to the part of the sprite it is overlapping that is rotating

    what is the mathematical equation for keeping position relative to the surface area of a sprite that is rotating? or how can this be done in construct 2??

  • So is this like a ferris wheel, where the objects are on the edge of a circle ?

    If so, you might want to consider moving from x,y coordinates to polar ones - angle from origin and distance - put these in your objects (family ?) and update the position using basic trigonometry.

    I'm not clear exactly what you want to do.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • So is this like a ferris wheel, where the objects are on the edge of a circle ?

    If so, you might want to consider moving from x,y coordinates to polar ones - angle from origin and distance - put these in your objects (family ?) and update the position using basic trigonometry.

    I'm not clear exactly what you want to do.

    yes ferris wheel effect where the point of entry is the same location but of course keeping track of this is confusing for me in construct 2.

    So I should use trigonometry to decide based on the overlapped wheel objects angle my position is updated while overlap to include my new spot based on my old X and Y? hmmm im not the best on trigonometry but i think i see what is needed now center of image ... arctan? hmmm

    atleast i know what is needed now thanks

  • Forget about thinking where the things are in terms of x and y coordinates, and think in polar coordinates, do the movement in polar coordinates - in this case, rotating the object around the circle is easy, just change the angle - this is different to the rotation angle obviously.

  • Hmm, so rotate object with gravity?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,941 263,290
FlyingRam's avatar
FlyingRam
Unread hot topic
0 Favourites
CocoonJS plugin updates
519 48,587
tuzke's avatar
tuzke
Unread hot topic
410 84,612
MrMegawatts's avatar
MrMegawatts