Skip to content

Commit

Permalink
extra notes on other entity methods
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Apr 16, 2024
1 parent 6d5f46d commit 572e343
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/concepts/entities.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Callout } from 'nextra/components'
import { Tooltip } from '~/components/tooltip'
import { UnderConstruction } from '~/components/under-construction'

# Entities
Expand Down Expand Up @@ -141,8 +142,11 @@ initialization only on the client.

### Other Methods

- `bounds`
- `isPointInside`
- `bounds` -> required, return `undefined` if an entity is boundless (ie: entities that have no physical representation in the world)
- `isPointInside` -> required, return `false` if an entity is boundless

`bounds` represents the <Tooltip title="Axis Aligned Bounding Box">AABB</Tooltip> of the entity, and is used to render editor selection highlights, as well as to do quick and dirty intersection tests.
`isPointInside` is used for precise intersection tests, such as mouse events.

---

Expand Down

0 comments on commit 572e343

Please sign in to comment.