News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How to use trigonometric function in the mod  (Read 130 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Jr. Member
  • **
  • Posts: 42
  • Gender: Male
  • yee yep ass haircut
    • View Profile
How to use trigonometric function in the mod
« on: August 24, 2021, 01:40:20 AM »
Assuming that the direction the player faces extends a distance of 5, find the vector of this diagonal line to the y-axis direction

If math.sin(PedGetHeading(gPlayer)) =  b / 5

then b = the vector of y-axis direction
.
.
.
.
Am I right :hmm:🤔