How do I make an actor move in a horizontal sine wave?

ETGgamesETGgames Member, PRO Posts: 190

I currently only know how to use the vertical sine wave function where i constrain an actor's y position to, for example, 10sin(self.Time300)+160. This is to move the actor up and down smoothly. However, I cannot figure out how to make the actor move rom left to right in an arcsine wave. I tried constraining its x position to 10asin(self.Time300)+284, but that does nothing I want it to do.

Best Answers

  • SocksSocks London, UK.Posts: 12,822
    edited April 2014 Accepted Answer

    @EthaneusTheGreat said:
    Can you please explain in further detail how to do this is how to use arcsine?

    Not 100% what this question means ?

    @EthaneusTheGreat said:
    All I want is the EXACT same movement of a sine wave going up and down, but instead from right to left.

    Use the equation you have in your first post, but instead of constraining the actor's Y position to that equation, constrain the actor's X position to that equation.

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

Answers

Sign In or Register to comment.