Separate names with a comma.
Comments in 'Plugin Development' started by ahoj_truhliku, Jul 15, 2015.
please how can i calculate YAW and PITCH from Vector3 or Vector3 from yaw and pitch?
To get Yaw, $player->getYaw()
To get pitch, $player->getPitch()
replace $player with your player object or entity object
no.. I want to face player at specific Vector3, or Get Vector3 where is player faced
Vector3 only contains X, Y, Z
just because i don´t know how to find it out.
e.g. I want to make rotating NPC, Their Pitch and Yaw will update depending player position.
You can take a look at how my Zombies (from Mobsters does this):
Nobody ever told you XYZ can only represent coordinates. It can also represent three-dimensional factors.
THX! i must learn math functions better.