コード例 #1
0
ファイル: Standing.cs プロジェクト: witia87/Overhaul
        protected void ManageReachingLegsTurnDirection(Vector3 logicLookDirection,
                                                       Vector3 movementTurnLogicDirection)
        {
            var legsLogicDirection  = GetLogicVector(Legs.transform.forward);
            var torsoLogicDirection = GetLogicVector(Torso.transform.forward);
            var angle = AngleCalculator.CalculateLogicAngle(legsLogicDirection,
                                                            movementTurnLogicDirection);

            Legs.TurnTowards(movementTurnLogicDirection);
        }