775adf685a
No more jitter! Collisions actually work all the time!
20 lines
443 B
C#
20 lines
443 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace TrueCraft.API.Entities
|
|
{
|
|
public interface IPhysicsEntity
|
|
{
|
|
Vector3 Position { get; set; }
|
|
Vector3 Velocity { get; set; }
|
|
float AccelerationDueToGravity { get; }
|
|
float Drag { get; }
|
|
float TerminalVelocity { get; }
|
|
|
|
bool BeginUpdate();
|
|
void EndUpdate(Vector3 newPosition);
|
|
}
|
|
}
|