summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/ActionSetVelocity.cs
blob: 3289ac8197e17cccd5e60530ae8ae93f09db7851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ActionSetVelocity : ActionBase
{
	PhysicsBody m_Body;

	Vector3 m_Velocity;

	public ActionSetVelocity(PhysicsBody body, Vector3 velocity)
	{
		m_Body = body;
		m_Velocity = velocity;
	}

	public override void Execute()
	{
		m_Body.Velocity = m_Velocity;
	}
}