#Shoot snowball direction

1 messages · Page 1 of 1 (latest)

azure cloak
#

Hello its possible to set direction of snowball when his shoot ?

oblique smelt
#

Spawn it without any momentum then set its velocity

azure cloak
#

Ok I'll see how it works, because I use a snowball to teleport a display item (in stone) to simulate a catapult, do you think there is a better way?

oblique smelt
#

I wouldn't know, I don't work with display items

azure cloak
#

but velocity only affects speed? It’s the direction that interests me

oblique smelt
#

Yeah, set its velocity to a speed in a certain direction

azure cloak
#

but how to define the direction of a shot from a position?

#

not from a player, it works but it only pulls in one direction the same

oblique smelt
#

Using vectors, there's a lot of ways

#

You can do vector(0, 1, 0) which would be straight up

azure cloak
#

I'm not very familiar with this but could I tell myself where I should place this vector?

oblique smelt
#

Vectors are a direction, not locations, so you'd want to do
set velocity of last shot snowball to vector(0,0,0)

#

That would just stop it, I think

azure cloak
#

THANK ❤️

#

its work

oblique smelt
#

👍