GodotComponentTest/entities/Entity.cs

20 lines
396 B
C#

using Godot;
using System;
public class Entity : KinematicBody
{
public Vector3 Position = Vector3.Zero;
public Quat Orientation = Quat.Identity;
public Vector3 Velocity = Vector3.Zero;
public float RotationalVelocity = 0;
public override void _Ready()
{
}
public override void _Process(float _delta)
{
Velocity = MoveAndSlide(Velocity);
}
}