public bool CanMergeGoals(SteeringGoal goal) { return !(this.PositionSet && goal.PositionSet || this.OrientationSet && goal.OrientationSet || this.VelocitySet && goal.VelocitySet || this.RotationSet && goal.RotationSet); }
public bool CanMergeGoals(SteeringGoal goal) { return(!(this.PositionSet && goal.PositionSet || this.OrientationSet && goal.OrientationSet || this.VelocitySet && goal.VelocitySet || this.RotationSet && goal.RotationSet)); }
public void UpdateGoal(SteeringGoal goal) { if (this.CanMergeGoals(goal)) { if (goal.PositionSet) { this.Position = goal.Position; } if (goal.OrientationSet) { this.Orientation = goal.Orientation; } if (goal.VelocitySet) { this.Velocity = goal.Velocity; } if (goal.RotationSet) { this.Rotation = goal.Rotation; } } }