Ad
Log in to vote
1

How do i find the "pitch" angle of a CFrame/vector?

Asked by 5 months ago

i'm trying to simulate bullets using several raycasts chained together and i handle the bullet drop by storing a separate value for downwards speed. the problem is i need to figure out how long to make the raycast and i'm planning on using the cosine law but that requires an angle

1 answer

Log in to vote
1
Answered by 5 months ago

https://developer.roblox.com/en-us/api-reference/datatype/CFrame

or

https://devforum.roblox.com/t/how-to-get-a-cframes-angles/238958/2

might help

Ad

Answer this question