using Prism; namespace Example { public class BasicController : Entity { public float Speed; public float DistanceFromPlayer = 20.0F; private Entity m_PlayerEntity; public void OnCreate() { m_PlayerEntity = FindEntityByTag("Player"); } public void OnUpdate(float ts) { /* Mat4 transform = GetTransform(); Vec3 playerTranstation = m_PlayerEntity.GetTransform().Translation; Vec3 translation = transform.Translation; translation.XY = playerTranstation.XY; translation.Z = playerTranstation.Z + DistanceFromPlayer; translation.Y = Math.Max(translation.Y, 4.5f); transform.Translation = translation; SetTransform(transform); */ } } }