Skip to content

Commit

Permalink
19/8/21 2:32 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
eboatwright committed Aug 19, 2021
1 parent d935be0 commit aa31550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtInComponentsAndSystems/rigidBody.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (rbs *RigidbodySystem) Update(entity *pearl.Entity, scene *pearl.Scene) {
rb.Velocity.Add(rb.Gravity)
t.Position.Add(pearl.Vector2Floor(rb.Velocity))
case LevelCollision:
if scene.FindComponent("level") == nil { return }
level := scene.FindComponent("level").(*Level)

tile := &pearl.Entity { ID: "tile" }
Expand Down

0 comments on commit aa31550

Please sign in to comment.