Woodylepic
New member
- Joined
- Dec 29, 2009
- Messages
- 71
- Reaction score
- 0
- Points
- 0
I have add 4 VC Camera in my 2 stage rocket but when a stage separation occur and the center of gravity change (whit ShiftCG) the Vc Camera do not fallow the mesh position ?
I have read that the camera was supposed to fallow the mesh position when I use ShiftCG is this true ? what I have to do to get the camera to fallow the mesh ?
bool A_001::clbkLoadVC (int id)
{
switch (id) {
case 0: // CM camera
SetCameraOffset (_V(0, 0, 7.361));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1,-1, -1, 1);
campos = CAM_VCPSNGR1;
break;
case 1: // cockpit
SetCameraOffset (_V(0,1.982,4.824));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1, -1, 0, 2);
campos = CAM_VCPSNGR2;
break;
case 2: // SM camera
SetCameraOffset (_V(0, 0, 1.202));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1, -1, 1, 3);
campos = CAM_VCPSNGR3;
break;
case 3: // LES camera
SetCameraOffset (_V(0,0,8.652));
oapiCameraSetCockpitDir(0*RAD,180*RAD);
oapiVCSetNeighbours (-1, -1, 2, -1);
campos = CAM_VCPSNGR4;
returntrue;
default:
returnfalse;
}
I have read that the camera was supposed to fallow the mesh position when I use ShiftCG is this true ? what I have to do to get the camera to fallow the mesh ?
bool A_001::clbkLoadVC (int id)
{
switch (id) {
case 0: // CM camera
SetCameraOffset (_V(0, 0, 7.361));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1,-1, -1, 1);
campos = CAM_VCPSNGR1;
break;
case 1: // cockpit
SetCameraOffset (_V(0,1.982,4.824));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1, -1, 0, 2);
campos = CAM_VCPSNGR2;
break;
case 2: // SM camera
SetCameraOffset (_V(0, 0, 1.202));
oapiCameraSetCockpitDir(0,0);
oapiVCSetNeighbours (-1, -1, 1, 3);
campos = CAM_VCPSNGR3;
break;
case 3: // LES camera
SetCameraOffset (_V(0,0,8.652));
oapiCameraSetCockpitDir(0*RAD,180*RAD);
oapiVCSetNeighbours (-1, -1, 2, -1);
campos = CAM_VCPSNGR4;
returntrue;
default:
returnfalse;
}
Last edited: