#Look at block with 12 lines

11 messages · Page 1 of 1 (latest)

chilly pawn
#

Arrw is the pointer
blck is being pointed to
arrw needs everything and blck needs pos.

LABEL Label0
SUB R0 blck.Pos.X arrw.Pos.X
SUB R1 blck.Pos.Y arrw.Pos.Y
SUB R2 blck.Pos.Z arrw.Pos.Z
ATAN2 arrw.Rot.Y R0 R2
MUL R4 R0 R0
MUL R5 R2 R2
ADD R4 R4 R5
SQRT R4 R4
ATAN2 R4 R1 R4
MUL arrw.Rot.X R4 -1
SLEEP 0
GOTO Label0

crisp hull
#

please add a sleep 0 before the goto

chilly pawn
#

k

crisp hull
#

perfect

#

do you really need the -1 in multiplication in the end or does switching R1 and R4 in the second ATAN2 also solve that?

#

just wondering if maybe you can skip that extra instruciton, not sure

chilly pawn
#

i can see

#

hold up

chilly pawn
crisp hull
#

your objects initial rotation is probably wrong

#

could fix by rotating pivot