playMaker

Author Topic: Set Rotation Velocity Direction 2d  (Read 1172 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Set Rotation Velocity Direction 2d
« on: October 01, 2015, 10:25:39 AM »
SetRotationForceDirection2d

Rotate 2d gameobject in the direction of velocity / force movement

NOTE: sprite at 0.0.0 should face right

on ecosystem or https://snipt.net/dudebxl/setrotationvelocitydirection2d/

4arrancho

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Re: Set Rotation Velocity Direction 2d
« Reply #1 on: January 09, 2019, 05:35:20 PM »
Hi

Is possible to change this action so it remembers the last rotation angle before the key is up

Example: If i press the key arrow down it rotates down but if i leave the key it rotates to original position that it's facing right