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 937 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • 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:🤔