Firstborn/Assets/RPG Creation Kit/Scripts/_ General/DebugRbVelocity.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

25 lines
595 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RPGCreationKit
{
/// <summary>
/// Script that debugs the velocity of a rigidbody, used on runtime testing purposes.
/// </summary>
public class DebugRbVelocity : MonoBehaviour
{
Rigidbody rb;
// Start is called before the first frame update
void Start()
{
rb = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
Debug.Log("RBV: " + rb.velocity);
}
}
}