Skip to content

Commit 10f9970

Browse files
authored
Merge pull request #41 from CleanCut/doc-typo
Fix field in docs that was renamed in code awhile ago
2 parents ac6a841 + b096927 commit 10f9970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial/src/65-sprite-collider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Rusty Engine has an basic collision system. You may define one convex polygon shape to be a collider for a sprite. When two sprites with colliders whose `collision` fields are both set to `true` begin or end overlapping, a [`CollisionEvent`](https://docs.rs/rusty_engine/latest/rusty_engine/physics/struct.CollisionEvent.html) will be produced. If either of the sprites lacks a collider, or if either of the sprites has their `collision` field set to `false`, then no collision event is produced.
44

5-
Colliders will be rendered as lines on the screen if `Engine.debug_sprite_colliders` is set to `true`.
5+
Colliders will be rendered as lines on the screen if `Engine.show_colliders` is set to `true`.
66

77
Colliders are stored in files with the same name and path as the image file they are for, but with the `.collider` extension. If a valid collider file exists when a sprite is created, it will be loaded automatically. However, the `collision` field for a sprite always defaults to `false`, so you must opt in to the collision system by setting `collision` to `true` on your sprites.
88

0 commit comments

Comments
 (0)