Circular motion with rotation
Icebox
Member Posts: 1,485
Hello , I am trying to find a way to make my actor move in a circular motion without using sin/cos functions. My game becomes really slow on android and i finally found out that if i have more than 5 actors using sin/cos functions the fps drops, and i have 10+ actors. I am trying to make a circular motion with rotate behavior and changing Center Of Mass X/Y , the problem is that the image rotates as well. Like this.
I know its supposed to be this way , cause im using rotate behavior but I was wondering if there is a clever way to avoid it ? I want it to move in a circular motion without rotating its image. If there isnt , is there any other way i can move my actor in a circular motion without using trig functions ?
Thank you
Comments
simultaneous X and Y position interpolation might work
www.rossmanbrosgames.com
Move / Direction game.Time *100 (relative to actor).
@RossmanBrothersGames @Socks Thanks alot