Core Game Loop Additions
This commit is contained in:
@@ -32,6 +32,7 @@ namespace ProjectM.Simulation
|
||||
.WithAll<Simulate>())
|
||||
{
|
||||
float step = projectile.ValueRO.Speed * dt;
|
||||
projectile.ValueRW.LastStep = step;
|
||||
float3 dir = new float3(projectile.ValueRO.Direction.x, 0f, projectile.ValueRO.Direction.y);
|
||||
|
||||
transform.ValueRW.Position += dir * step;
|
||||
|
||||
Reference in New Issue
Block a user