예제 #1
0
/***********************************************************
get object rotation on a single angle
***********************************************************/
float LbaQuaternion::GetRotationSingleAngle()
{
	NxQuat current;
	current.setXYZW(X, Y, Z, W);
	return current.getAngle();
}
예제 #2
0
/***********************************************************
get object rotation on all axis
***********************************************************/
float PhysXActorsHandler::GetRotationSingleAngle()
{
	NxQuat quat = _Actor->getGlobalOrientationQuat();
	return quat.getAngle();
}