summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs')
-rw-r--r--Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs b/Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs
new file mode 100644
index 00000000..5e2f62ed
--- /dev/null
+++ b/Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs
@@ -0,0 +1,21 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class ActionSetLocalVelocity : ActionBase
+{
+ PhysicsBody m_Body;
+
+ Vector3 m_Velocity;
+
+ public ActionSetLocalVelocity(PhysicsBody body, Vector3 localVelocity)
+ {
+ m_Body = body;
+ m_Velocity = localVelocity;
+ }
+
+ public override void Execute()
+ {
+ m_Body.LocalVelocity = m_Velocity;
+ }
+}