Fixing is endless
This commit is contained in:
1 parent
c0dec163cd
commit
3ca9444333
45 files changed
+123468
-18592
No files matched your search
@@ -137,7 +137,10 @@ namespace Code.OfficeGame.BattleMode.Actions.Deciders
|
||||
|
||||
var hit = _hitBuffer[0];
|
||||
|
||||
var lookDirection = hit.point - _entityPosition;
|
||||
Vector3 hitPoint = hit.point;
|
||||
hitPoint.y = _entityPosition.y;
|
||||
|
||||
var lookDirection = hitPoint - _entityPosition;
|
||||
_targetRotation = Quaternion.LookRotation(lookDirection.normalized, Vector3.up);
|
||||
|
||||
_playerDecisionMarker.transform.rotation = _targetRotation;
|
||||
|
||||
Reference in new issue
Block a user