Skip to content

2D Raycast #729

@mucaho

Description

@mucaho

Feature request from forum

You'd want to examine how the HashMap code works -- it implements a spatial partition we use for broad phase collisions. Any implementation of raycasting would probably use that as a starting point. You could step through the grid sections in order, checking in each one for collisions. That would definitely be more efficient than using a collision entity, since you could just stop once you found an intersection, and could use a test for ray intersection instead of SAT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions