SwiftSlug / Hyperboreus

2 stars 0 forks source link

Player character alignment #64

Open jayboyo opened 6 years ago

jayboyo commented 6 years ago

Aiming the player has some issues with objects that overlap the player area. This I believe is because of the line trace hitting these objects and setting the player rotation to values that don't appear to be right when controlling the player. This causes a sudden snap to the player rotation when the mouse goes over certain objects.

jayboyo commented 6 years ago

This could probably be resolved by adding a specific plane to the game world that is used specifically for the mouse look raycast. The raycast could then only be triggered by this plane to avoid any of the snapping caused by other objects interfering with it.