rjkilpatrick / BrickFPS

Star Wars Battlefront style game using LEGO style assets
MIT License
12 stars 1 forks source link

Player camera clips into walls #9

Open rjkilpatrick opened 4 years ago

rjkilpatrick commented 4 years ago

Describe the bug The Player Camera is on a attached to the root player via a SpringArm

To Reproduce Steps to reproduce the behavior:

  1. Add collision shape as box
  2. Move CameraTarget into collision shape
  3. Camera clips into the MeshInstance

Expected behavior The camera target should intersect with the collision shape and move itself to the nearest non-colliding point.

Screenshots Screenshot from 2020-08-06 13-46-39

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

rjkilpatrick commented 4 years ago

Consider changing Camera system based on ClippedCamera?