@regnaio I don't use inverse kinematics.
Using the position of the player and bot, yaw and pitch angles toward the player are calculated.
Set the yaw angle to the bot's mesh rotation.
Set the pitch angle to the bot's vrm shoulder joint.
Then, bot's gun always face to the player direction
@sweriko I'm a beginner in Rapier.js so I don't know the difference in core and compat. Most of examples starts with compat, I use compat version.
Anyway, your game is great.