Beispiel #1
0
PhysicalProperties MpcorbEphemeris::VGetPhysicalProperties(const std::string& name)
{
   try
   {
      return g_ephemerisDatabase->GetPhysicalProperties(name);
   }
   catch (std::exception ex)
   {
      OTL_ERROR() << "Exception caught while retrieving physical properties for " << Bracket(name);
   }

   return PhysicalProperties();
}
PhysicalProperties JplApproximateEphemeris::VGetPhysicalProperties(const std::string& name)
{
   try
   {
      return GetPlanetPhysicalProperties(name);
   }
   catch (std::exception ex)
   {
      OTL_ERROR() << "Exception caught while trying to retrieve physical properties for "
         << Bracket(name) << ": " << Bracket(ex.what());
   }

   return PhysicalProperties();
}
//! ----------------------------------------------------------------------------
//! FUNCTIONS
//! ----------------------------------------------------------------------------
CollisionMask* BrainBot::createMask(NavGrid const* grid_)
{
  return
    new GridCollider(10, grid_, PhysicalProperties(MAX_SPEED, FRICTION, ACCELERATION));
}