Beispiel #1
0
SBAPI void SBM_SBDebuggerServer_SetRendererIsRightHanded( SBMHANDLE sbmHandle, bool enabled )
{
   if ( !SBM_HandleExists( sbmHandle ) )
   {
      return;
   }

   SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
   SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();

   debuggerServer->m_rendererIsRightHanded = enabled;
}
Beispiel #2
0
SBAPI void SBM_SBDebuggerServer_SetID( SBMHANDLE sbmHandle, const char * id )
{
   if ( !SBM_HandleExists( sbmHandle ) )
   {
      return;
   }

   SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
   SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();

   debuggerServer->setStringAttribute("id", id);
}
Beispiel #3
0
SBAPI bool SBM_ProcessVHMsgs( SBMHANDLE sbmHandle, const char * op, const char * args )
{
   if ( !SBM_HandleExists( sbmHandle ) )
   {
      return false;
   }

   SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
   string s = string(op) + string(" ") + string(args);
   scene->command( s.c_str() );
   scene->getDebuggerServer()->ProcessVHMsgs(op, args);

   return true;
}
Beispiel #4
0
SBAPI void SBM_SBDebuggerServer_SetCameraValues( SBMHANDLE sbmHandle, double x, double y, double z, double rx, double ry, double rz, double rw, double fov, double aspect, double zNear, double zFar )
{
   if ( !SBM_HandleExists( sbmHandle ) )
   {
      return;
   }

   SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
   SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();

   debuggerServer->m_cameraPos.x = x;
   debuggerServer->m_cameraPos.y = y;
   debuggerServer->m_cameraPos.z = z;
   debuggerServer->m_cameraRot.x = rx;
   debuggerServer->m_cameraRot.y = ry;
   debuggerServer->m_cameraRot.z = rz;
   debuggerServer->m_cameraRot.w = rw;
   debuggerServer->m_cameraFovY   = fov;
   debuggerServer->m_cameraAspect = aspect;
   debuggerServer->m_cameraZNear  = zNear;
   debuggerServer->m_cameraZFar   = zFar;
}