Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
RigidAngle.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class RigidAngle : RigidUpdate
4{
5 public float angle;
6
7 public float force = 0.05f;
8
9 public override void OnFixedUpdate()
10 {
11 float num = Mathf.Lerp(rb.rotation, angle, force);
12 rb.MoveRotation(num);
13 }
14}
float force
Definition: RigidAngle.cs:7
override void OnFixedUpdate()
Definition: RigidAngle.cs:9
float angle
Definition: RigidAngle.cs:5
Rigidbody2D rb
Definition: RigidUpdate.cs:13