Code: Select all
cameraNode = sceneManager -> addCameraSceneNode(oNode, vector3df(0, 0, 0), vector3df(0, 0, 0), -1);
Can anyone please tell me how to make the camera face forward through the object?
My thanks in advance.
Code: Select all
cameraNode = sceneManager -> addCameraSceneNode(oNode, vector3df(0, 0, 0), vector3df(0, 0, 0), -1);
Code: Select all
cameraNode->setTarget(lookAtTarget);
Code: Select all
cameraNode = sceneManager -> addCameraSceneNode(oNode, vector3df(40, 60, 0), vector3df(0, 0, 0), -1);
Code: Select all
matrix4 mat;
memcpy(mat.pointer(), matrix, sizeof(float) * 16);
ISceneNode *shape = ((SShape*) NewtonBodyGetUserData(body)) -> node;
if (shape) {
shape -> setPosition(mat.getTranslation());
shape -> setRotation(mat.getRotationDegrees());
}