Vector2D SteeringBehavior::ObstacleAvoidance(const std::vector<BaseGameEntity*>& obstacles)
{
m_dDBoxLength = Prm.MinDetectionBoxLength + //<--- How to do this?
(m_pVehicle->Speed()/m_pVehicle->MaxSpeed()) *
Prm.MinDetectionBoxLength;
My problem is with this part Prm.MinDetectionBoxLength . I have never seen this before in my life, and I was wondering how one accomplishes this. I tried doing it myself, and I got the following error. No suitable conversion exist between "Foo" to "double".