mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-15 04:15:28 +07:00
little example fix
This commit is contained in:
@@ -66,8 +66,8 @@ local integrate_forces_system = evo.system()
|
||||
for i = 1, entity_count do
|
||||
local force, velocity = forces[i], velocities[i]
|
||||
|
||||
velocity.x = (physics_gravity.x + force.x) * delta_time
|
||||
velocity.y = (physics_gravity.y + force.y) * delta_time
|
||||
velocity.x = velocity.x + (physics_gravity.x + force.x) * delta_time
|
||||
velocity.y = velocity.y + (physics_gravity.y + force.y) * delta_time
|
||||
end
|
||||
end):build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user