[SNIPPET] OffsetDesdePuntoConAngulo

:dont_care: I dont know what the fuck this is.. i niggered it from gtag

:OffsetDesdePuntoConAngulo
{Params
-OrigenX      0@
-OrigenY      1@
-OrigenZ      2@
-Distancia    3@
-AnguloZ      4@
-InclinacionY  5@
}
02F6: 33@ = sine 4@ // (float)
02F7: 32@ = cosine 4@ // (float)
02F6: 31@ = sine 5@ // (float)
006B: 33@ *= 3@ // (float)
006B: 32@ *= 3@ // (float)
006B: 31@ *= 3@ // (float)
005B: 0@ += 33@ // (float)
005B: 1@ += 32@ // (float)
005B: 2@ += 31@ // (float)
0AB2: ret 3 0@ 1@ 2@
 

not490

Well-known member
Joined
Feb 8, 2014
Messages
438
Reaction score
4
Re: OffsetDesdePuntoConAngulo

Did u test what i does ? :D
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Re: OffsetDesdePuntoConAngulo

0@ 1@ 2@ = x y z coordinates
3@ is distance (common sense)
4@ is Z angle
5@ is Y Rotation

:surprised:

I think this will help you spawn something right in front of you wherever you look. So;
x y and z will be the coordinate of the object which you will spawn,
distance will be the distance between you and the object,
Z angle will set object to look at a certain point (perhaps same as yours?) and
Y Rotation will be object's y rotation depending on where you look.
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Re: OffsetDesdePuntoConAngulo

That function will do this:

????: store_coords_to 4@ 5@ 6@ from_position 1@ 2@ 3@ angle 360.0 with_offset 0.0 10.0 0.0
 
Top