I'm using the 2D system and want to have an object's Z rotation change from 0 to -90 degrees based on it's downward velocity (example: nose of plane dips towards ground faster it falls). I have a working script, but wanted to know how to translate this to Playmaker. Not sure which Actions / Variables I need in PM. I see no Euler options, etc.
float maxSpeed = 3f;
velocity = Vector3 (velocity, maxSpeed);
transform.position += velocity * Time.deltaTime;
float angle = 0;
if (velocity.y < 0) {
angle = Mathf.Lerp(0, -90, -velocity.y);
}
transform.rotation = Quaternion.Euler(0, 0, angle);