C# plugin for Lumix Engine
Warning: the latest version is not in usable state!
Getting started:
- Install mono
- Install this plugin
- Build and run Lumix Engine Studio, you can now create and use C# scripts
public class Test : Lumix.Component
{
float yaw = 0;
void OnInput(Lumix.InputEvent e)
{
if (e is Lumix.MouseAxisInputEvent)
{
var ev = e as Lumix.MouseAxisInputEvent;
yaw += ev.x * 0.02f;
}
}
void Update(float td)
{
this.entity.Rotation = Lumix.Quat.FromAngleAxis(yaw, new Lumix.Vec3(0, 1, 0));
}
}