#Particles

1 messages · Page 1 of 1 (latest)

raw patio
#

so you render say at (1, 2 ,3) and you want to render at (3, 2, 1) but with 90 deg rot?

#

@civic jacinth type here to not block main chat

civic jacinth
#

Alright thanks

#

So my goal is to create a particle pattern on a block

#

But since it’s directional, I need to be able to rotate it around the y axis so it fits on other blocks with other directions

raw patio
#

Lets take the line as an example:

loc0 = Position of the block
loc1 = Your end goal

step = amountOfParticles
distance = distance from loc0 to loc1
traveled = 0

while the traveled distance is less than the distance, add step to it and run:
spawn a particle at the position loc0 + traveled

to now rotate it, just rotate loc1 and the particles will follow that line

#

well rotate loc1 around loc0

#

don't just rotate loc1

civic jacinth
raw patio
#

you should be able to do it in 3d

raw patio
#

however they need to rotate along a point

#

not A point

#

fair point

raw patio
#

or matlab/octave