Hello! I hope you're all having a good day. basis.xform and basis.xform_inv seem to be missing in Godot 4 and I can't find anywhere that talks about it. I am making an FPS game and was going to use the bullet hit positions for applying impulses on Rigidbodies, but the impulse points are in local space and the hit points are in global space. Godot 3.x has xform but even a Godot 4 build from October 2021 is missing these functions.
Does anyone know about this? Why would they remove these?
They made xform an overloaded operator in Godot 4.0, so you can just use the * symbol.
For xform_inv it would look like this:
var horz_quat = Quaternion((target_basis.inverse() * Vector3.UP), mouse_delta.x)
Also, you need to verify you account by clicking the link in the email we sent you.