#My circuits are either broken or bugged (about vector gadget)

17 messages · Page 1 of 1 (latest)

craggy pebble
#

ima tell the problem better in a sec, im making food right now.

basically: vector gadget > get position > set velocity

the gadget is in front of a ball and the ball is target for it

but the ball goes flying the wrong way for some reason, there just may be something wrong i am doing, but it seems more like a bug, help xd

sharp knot
#

Can you send a photo of your circuits?

You could have reversed the vector math.

craggy pebble
#

in a sec, ill ping you wenn i can (making food rn)

sharp knot
#

Ya don't gotta ping me 😛 But sure, make some for me too

craggy pebble
#

nah 😝

sharp knot
craggy pebble
#

@sharp knot
here are some.
(ignore the extra, they have the same problem)

sharp knot
#

Those are very bad photos, They don't tell me what your actually doing. But if you're using positions as a direction, it makes total sense that the target flies off.

Basically what you're doing is saying the direction is an arrow the size of the position. Which can be very strange. Directions are meant to be unit vectors, meaning their values don't go past 1.

What are you trying to do?

craggy pebble
#

"using positions as a direction makes sense it flies off", k.. so what should i do instead?

dull gate
#

Use the other Vector3 presented on the arrow for the directional vector/forward vector of the arrow.

#

If you're trying to make the ball move towards the arrow, subtract the Arrow Positon by Ball Position.

craggy pebble
#

ok, i see it now

#

thanks

dull gate
#

This will make it Direction * Distance, so you can Vector Normalize the Subtraction to make it move 1m/s, but you can also Multiply or Vector Scale it.

sharp knot
#

🙏

craggy pebble
#

👍