GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Constrain rotation to self.motion

GuaveMediaGuaveMedia Posts: 1,262Member, PRO
Hey guys,

kinda like have a blackout right now. I want to constrain my actor (so the top is at front) to his self motion.

Thanks a lot :)

www.guavegames.wordpress.com
www.tranrock.wordpress.com

Comments

  • DeadlySeriousMediaDeadlySeriousMedia ArizonaPosts: 838Member
    You want it to lean in the direction it's moving relative to the speed it's moving?
  • tatiangtatiang Posts: 11,863Member, Sous Chef, PRO, Senior Sous-Chef
    I believe it's Constrain Attribute self.Rotation to vectorToAngle(self.motion.linear velocity.X, self.motion.linear velocity.Y)

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • GuaveMediaGuaveMedia Posts: 1,262Member, PRO
    Yeah thank :) I had fixed rotation checked on, was quite late..

    Cheers

    www.guavegames.wordpress.com
    www.tranrock.wordpress.com

This discussion has been closed.