本文整理汇总了C++中dsSetViewpoint函数的典型用法代码示例。如果您正苦于以下问题:C++ dsSetViewpoint函数的具体用法?C++ dsSetViewpoint怎么用?C++ dsSetViewpoint使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dsSetViewpoint函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: start
void start()
{
// Set a camera
static float xyz[3] = {0.0,-2.0,1.0}; // View position (x, y, z [m])
static float hpr[3] = {90.0,0.0,0.0}; // View direction head, pitch, roll[°]
dsSetViewpoint (xyz,hpr);// Set a view point
}
示例2: updatecam
static void updatecam()
{
xyz[0] = platpos[0] + 3.3;
xyz[1] = platpos[1] - 1.8;
xyz[2] = platpos[2] + 2;
dsSetViewpoint (xyz, hpr);
}
示例3: start
static void start()
{
static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
dsSetViewpoint (xyz,hpr);
printf ("Press 'e' to start/stop occasional error.\n");
}
示例4: start
static void start() {
//static float xyz[3] = { 0.2,5.2,1.0};
static float xyz[3] = { 1.0,1.5,1.0};
static float hpr[3] = { 270,0,0};
dsSetViewpoint(xyz,hpr); // 視点,視線の設定
dsSetSphereQuality(3); // 球の品質設定
}
示例5: start
void start()
{
static float xyz[3] = {1.5, -1.5, 0.8}; // View position (x, y, z) [m]
static float hpr[3] = {136.0, 0.0, 0.0}; // View direction (head,pitch,roll)
dsSetViewpoint (xyz,hpr); // Set a view point
dsSetSphereQuality(3);
// ********** Pre-compute a simple trajectory wrt Fixed Leg *************************************
double t0 = 0.0, t1 = 2.0; // Time (initial & final)
bool FixedLeg = RIGHT;
Math::TPoint3D Pq1, Pq2, Pf1, Pf2;
Pq1.x=0.0; Pq1.y=0.0; Pq1.z=(L3+L4+L5+L6+L7+L8); Pq1.vx=0; Pq1.vy=0; Pq1.vz=0; // Hips wrt Fixed Leg: Initial Point
Pq2.x=0.0; Pq2.y=-L1; Pq2.z=(L3+L4+L5+L6+L7+L8)-L1/4; Pq2.vx=0; Pq2.vy=0; Pq2.vz=0; // Hips wrt Fixed Leg: Final Point
//Pq2.x=0.0; Pq2.y=0.0; Pq2.z=(L3+L4+L5+L6+L7+L8)-0.05; Pq2.vx=0; Pq2.vy=0; Pq2.vz=0; // Hips: Final Point
Pf1.x=0.0; Pf1.y=2*L1; Pf1.z=0; Pf1.vx=0; Pf1.vy=0; Pf1.vz=0; // Floating Leg wrt Fixed Leg: Initial Point
Pf2.x=0.0; Pf2.y=2*L1; Pf2.z=0; Pf2.vx=0; Pf2.vy=0; Pf2.vz=0; // Floating Leg wrt Fixed Leg: Final Point
Traj::rComputeHipsMotion(PreComputedAngleL, PreComputedAngleR, target_angleL, target_angleR,
Pq1,Pq2,Pf1,Pf2,t0,t1,TLENG,FixedLeg);
printf("\nAngles: Pre-computed \n");
}
示例6: start
/* ------------------------
* スタート関数
------------------------ */
static void start()
{
float xyz[3] = { 0.2, 2.5, 4.00}; /* カメラ座標 */
float hpr[3] = { 90.0, -90.0, 0.0}; /* カメラ方向 */
dsSetViewpoint(xyz,hpr);
dsSetSphereQuality(3);
}
示例7: start
static void start()
{
// initial camera position
static float xyz[3] = {1, 1, 0.5};
static float hpr[3] = {225, 0, 0};
dsSetViewpoint (xyz,hpr);
}
示例8: start
static void start()
{
dAllocateODEDataForThread(dAllocateMaskAll);
static float xyz[3] = {14.6117f,-6.4433f,9.3700f};
static float hpr[3] = {140.5000f,-20.5000f,0.0000f};
dsSetViewpoint (xyz,hpr);
}
示例9: start
static void start()
{
dAllocateODEDataForThread(dAllocateMaskAll);
static float xyz[3] = {2.4807,-1.8023,2.7600};
static float hpr[3] = {141.5000,-18.5000,0.0000};
dsSetViewpoint (xyz,hpr);
}
示例10: start
static void start()
{
dAllocateODEDataForThread(dAllocateMaskAll);
static float xyz[3] = {-8,-9,3};
static float hpr[3] = {45.0000f,-27.5000f,0.0000f};
dsSetViewpoint (xyz,hpr);
}
示例11: start
static void start()
{
static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
dsSetViewpoint (xyz,hpr);
printf ("Press 'q,a,z' to control one axis of lmotor connectiong two bodies. (q is +,a is 0, z is -)\n");
printf ("Press 'w,e,r' to control one axis of lmotor connectiong first body with world. (w is +,e is 0, r is -)\n");
}
示例12: start
static void start()
{
static float xyz[3] = {2.1640f,-1.3079f,1.7600f};
static float hpr[3] = {125.5000f,-17.0000f,0.0000f};
dAllocateODEDataForThread(dAllocateMaskAll);
dsSetViewpoint (xyz,hpr);
}
示例13: start
static void start()
{
dAllocateODEDataForThread(dAllocateMaskAll);
static float xyz[3] = { -6, 8, 6};
static float hpr[3] = { -65.0f, -27.0f, 0.0f};
dsSetViewpoint (xyz,hpr);
}
示例14: start
static void start()
{
// static float xyz[3] = {-5.0575, 8.4513, 14.300};
// static float hpr[3] = {-57.0000, -42.5000, 0.000};
static float xyz[3] = { -4.0068, 8.0185, 2.8900 };
static float hpr[3] = { -84.000, -20.5000, 0.0000 };
//xyz[ZZ] = initz*1.75;
dsSetViewpoint(xyz, hpr);
}
示例15: start
static void start()
{
dAllocateODEDataForThread(dAllocateMaskAll);
static float xyz[3] = {1.0382f,-1.0811f,1.4700f};
static float hpr[3] = {135.0000f,-19.5000f,0.0000f};
dsSetViewpoint (xyz,hpr);
printf ("Press 'e' to start/stop occasional error.\n");
}