Add outline pass to cubes
This commit is contained in:
parent
1852cf3a7f
commit
2ee22c118c
10 changed files with 425 additions and 108 deletions
|
|
@ -2,6 +2,8 @@ package ecs
|
|||
|
||||
import "core:log"
|
||||
|
||||
import program_config "../config"
|
||||
|
||||
PhysicsSystem :: struct {
|
||||
using base: SystemBase,
|
||||
}
|
||||
|
|
@ -18,7 +20,7 @@ physics_system_update :: proc(physics_system: ^PhysicsSystem, coordinator: ^Coor
|
|||
transform.position += rigid_body.velocity * dt
|
||||
rigid_body.velocity += gravity.force * dt
|
||||
|
||||
if transform.position.y < -15 {
|
||||
if transform.position.y < program_config.Y_DESPAWN_CUTOFF {
|
||||
append(&entities_to_delete, entity)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue