I need to rotate Sprite by 90 degrees in Y axis and Physics3DRigidBody stay i the same position but i dont know how ?
I’ve tried:
-
Quaternion q = car_cabine->getRotationQuat();
q *= Quaternion(car_cabine->getWorldToNodeTransform() * Vec3::UNIT_Y, CC_DEGREES_TO_RADIANS(90));
car_cabine->setRotationQuat(q); -
car_cabine->setRotationSkewY/setRotationY(CC_DEGREES_TO_RADIANS(90));
-
car_cabine->setRotationSkewY/setRotationY(90);
Any other ideas ?