Rotation 3DSprite and Physics3DRigidBody

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:

  1. Quaternion q = car_cabine->getRotationQuat();
    q *= Quaternion(car_cabine->getWorldToNodeTransform() * Vec3::UNIT_Y, CC_DEGREES_TO_RADIANS(90));
    car_cabine->setRotationQuat(q);

  2. car_cabine->setRotationSkewY/setRotationY(CC_DEGREES_TO_RADIANS(90));

  3. car_cabine->setRotationSkewY/setRotationY(90);

Any other ideas ?

@equeliper
Are you using PhysicsSprite3D?
There is a method named syncPhysicsToNode, it will synchronize physics transformation to node’s. You can learn from this method if you are using physics component.
Remember that setRotationSkewY/setRotationSkewX is not suitable for rigid body.