#tracker that speeds up when object is far and slows when close

1 messages · Page 1 of 1 (latest)

trim wraith
#

⚠️⚠️This was made by the ai grok but it does work⚠️⚠️
LABEL loop
SLEEP 0
SUB R0 grp2.px grp1.px
SUB R1 grp2.py grp1.py
SUB R2 grp2.pz grp1.pz
MUL R3 DT 5.0
MUL R0 R0 R3
ADD grp1.px grp1.px R0
MUL R1 R1 R3
ADD grp1.py grp1.py R1
MUL R2 R2 R3
ADD grp1.pz grp1.pz R2
GOTO loop

#

also the p's in px , py and pz are short for Position and DT is short for deltatime

polar dew
#

Yo son take a chill pill

crisp elk
#

seems familiar

small fable
#

how do you even add labels to groups

spare condor
#

l

broken hare
gaunt girder
#

l

copper spear
past crane
cloud drum
copper spear
#

use constant and set yo 5

#

R3 = DeltaTime x constant 5

pearl loom
#
SLEEP 0
SUB R0 grp2.Pos.X grp1.Pos.X
SUB R1 grp2.Pos.Y grp1.Pos.Y
SUB R2 grp2.Pos.Z grp1.Pos.Z
MUL R3 DELTATIME 5.0
MUL R0 R0 R3
ADD grp1.Pos.X grp1.Pos.X R0
MUL R1 R1 R3
ADD grp1.Pos.Y grp1.Pos.Y R1
MUL R2 R2 R3
ADD grp1.Pos.Z grp1.Pos.Z R2
GOTO loop```
#

think this works

vestal wedge
pearl loom
#

If your talking about regular naming without code just select the group and name it smth in selection

honest drift
#

you dont need deltatime for this

#

you just get the delta, and set r7 to like 10% of it and add it to the position

#
LABEL Delta
SUB R0 B.Pos.X A.Pos.X
SUB R1 B.Pos.Y A.Pos.Y
SUB R2 B.Pos.Z A.Pos.Z
LABEL X
MUL R3 R0 R7
ADD A.Pos.X R3 A.Pos.X
LABEL Y
MUL R4 R1 R7
ADD A.Pos.Y R4 A.Pos.Y
LABEL Z
MUL R5 R2 R7
ADD A.Pos.Z R5 A.Pos.Z
SLEEP 0
GOTO Delta```
#

or you could do it the other way around with

SUB
MUL
ADD

honest drift
vestal wedge
honest drift
#

group name ahhh