add serialization (use yaml-cpp), add stencil to render outline for selected entity, add play mode, UUIDS, add orthographic and perspective camera, add editor camera
This commit is contained in:
27
ExampleApp/Src/Sink.cs
Normal file
27
ExampleApp/Src/Sink.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Prism;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
class Sink : Entity
|
||||
{
|
||||
|
||||
public float SinkSpeed = 1.0f;
|
||||
|
||||
void OnCreate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OnUpdate(float ts)
|
||||
{
|
||||
Mat4 transform = GetTransform();
|
||||
Vec3 translation = transform.Translation;
|
||||
|
||||
translation.Y -= SinkSpeed * ts;
|
||||
|
||||
transform.Translation = translation;
|
||||
SetTransform(transform);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user