summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/ActionSetLocalVelocity.cs
blob: 5e2f62edc05b625ee3eef0f199e84899f40a645e (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 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;
    }
}