#Particles

1 messages · Page 1 of 1 (latest)

muted cloak
#

I understand that you can rotate particles by changing their rotation like rotate shapes {_helix} around x axis by 90 degrees, but how could I code that the particles just face where the player is looking? Is there simple syntax for this?
I'm using Skript, SkBee, and Skript-Particle

haughty fox
#

you use the player's vector (normalised direction they are facing)

#

im not a user of skript-particle, but you can use vectors, rotated around the player's vector to make a circle with normal in the direction they are facing

muted cloak
#

so with that could i just rotate shapes {_helix} around {_vector} by 90 degrees and set {_vector} to the direction of player?

muted cloak
haughty fox
#

you would need to use the spherical syntax, where you specify a vector's orientation through yaw and pitch:
vector from yaw y and pitch p
then just plug the player's yaw and pitch in

steel schooner
#

yes i use skrayfall ahh statment

haughty fox
steel schooner
#

ik

muted cloak
#

alright thanks

muted cloak
#

Okay sorry for being dumb but I am totally thinking about this the wrong way am I

#
        set {_pitch} to player's pitch
        set {_helixsphere} to sphereical vector radius 1, yaw {_yaw}, and pitch {_pitch}```
haughty fox
#

That looks like a step in the right direction

muted cloak
#

The problem is that skript doesn't understand the 3rd line

#

How do I get a player's yaw and pitch?

fallow venture
#

spherical

muted cloak
#

that's actually a magnificent idea

fallow venture
#

LOL

#

also i do have a similar code ive done but im not on my computer atm

#

and i kinda forgot how i did it, but the method youre doing rn should work

muted cloak
#

thanks for the help 👍

#

Next question (im so sorry)

#

How do I implement that variable into this

#

draw the shapes {_helixcool} at {_helixsphere} for 3 seconds

fallow venture
#

you can set the rotation of the shape to axisAngle(0, {_whateverVectorYouMade})

#

or smth like that

#

im not 100% sure how axis angle works myself i mostly got my particle stuff working by messing around with rotations and axisAngle

haughty fox
#

I dont use skript particle

#

Look at the sybtax, maybe for 3s doesnt work. In that case, loop it

muted cloak
#

but lowk im still so confused

#

i've tried a few things

#

I just don't know what to use anymore because you guys have shown so many options

severe depot
#

r u trying to draw aniamted shape

muted cloak
#

I'm just tryna make a shape that points where the player is looking

haughty fox
#

The way I do it wout skript-particle is add 90 pitch to the vector from the player and then rotate

severe depot
#

u can set their normal vector

#
#

i would just get the vector from player to like 1 block forward of player then set the particle's normal vector to the vector

fallow venture
#

thats def an easier way