Skip to content

Commit

Permalink
docs: Clarify that you can ray cast from components (#3376)
Browse files Browse the repository at this point in the history
Co-authored-by: crcdng <[email protected]>
Co-authored-by: Lukas Klingsbo <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent b5d7ee0 commit 5f2ce0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/flame/collision_detection.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ But in some use cases, it might be interesting to find hits only within a certai
range. For such cases, an optional `maxDistance` can be provided.

To use the ray casting functionality you have to have the `HasCollisionDetection` mixin on your
game. After you have added that you can call `collisionDetection.raycast(...)` on your game class.
game. After you have added that, you can call `collisionDetection.raycast(...)` on your game class,
or with the `HasGameReference` Mixin from other components as well.

Example:

Expand Down

0 comments on commit 5f2ce0b

Please sign in to comment.