How to make DynamicPhysicsNode rotating with camera?

Setting a localRotation to a dynPhyNode has no effects.

So I use setAngularVelocity to make player rotate.

How is possibile to determinate how many degrees needs the player to be aligned with camera direction ?

Setting local rotation does work as well as setting local translation works. But it's not recommended. Setting velocities is better but still not the best. It is recommended to influence the physics simulation only with forces (and torque).

You can convert a direction of (e.g. (1, 0, 0)) into the world coordinates of your player (localToWorld) and compare that vector with the direction vector of the camera. That the easiest way for me. Then apply forces proportional to the needed distance/angle minus the current velocity in that direction. The latter is needed to avoid oscillation.