playMaker

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

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Set Rotation Velocity Direction 2d
« on: October 01, 2015, 01:25:39 PM »
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: 27
Re: Set Rotation Velocity Direction 2d
« Reply #1 on: January 09, 2019, 07: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