Rotation - Mathematical Functions? | Advanced Procedures help, Please reply

Published by Aubarino on
Status
Resolved
Issue description

I have been trying to get this to work for weeks now, with no success, 

I have been trying to convert your rotation value block via sin, cos and math functions alike
into X, Y Z usable data.

I have tried my hardest and best but i cant figure out how to do it.

 

For instance [

I have a stick that is ment to spawn a Zombie 5 blocks away from you in the direction your facing
when you rightclick the stick item.
 

Via using your rotation sense data and mathematical functions.

Or a jetpack that spawns particles behind the player, in a direction via player rotation data.
]

But i can't seem to get this to work,
I know it should work, but i have been having insane problems, glitches and things alike, that don't even make any logical sense.

Is this a glitch with your mathematical functions?
Or a simple error on my part..

Please reply with a detailed yet easy to understand fix for the problem.
I may make a youtube tutorial on this if you indeed help me with this problem, i will also make it the 2nd video in my tutorial series.
 

xo - Aubarino

Issue comments

Is this a glitch with your mathematical functions?

Mathematical functions reflect directly to Java mathematical functions so this is close to impossible.

Trigonometric functions in Java operate with radians, not degrees, this is most likely the problem you are having.

Oh, hmm.

I see the problem now.. :|

But still, is it possible for you to help me understand - figure out a possible work around?
If i could get this one bit of data from a procedure, i could use it in soo many ways to create so many functions.

 

Or perhaps that's a thing to perhaps note for the next update,
Relative rotational data