Skip to content

Avoid positioning third-person camera code in or behind blocks #199

@stackotter

Description

@stackotter

At the moment the third-person camera is just a fixed distance away from the player's head. However, this leads to the camera being able to go inside blocks. We should be able to reuse the block ray tracing code in Game.getTargetedBlock to determine a safe distance to place the camera (just by pulling that code out into a more generic function where you can plug in whatever rays and distances you require).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions