#Particles
1 messages · Page 1 of 1 (latest)
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
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
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
How do I do that?
https://stackoverflow.com/questions/22491178/how-to-rotate-a-point-around-another-point this is in 2d
you should be able to do it in 3d
or matlab/octave