I am currently working on a light simulator, although the collisions aren’t perfect, I have noticed an error:
The Light partcle’s orientation after a collision is based on this equation:
Light.Orientation+= Vector3.new(90,90,90)*RNorm*-1
RNorm: RaycastResult.Normal
Prier to the physics of every Frame, the Raycast is sent to detect if the Light Particle is collideing, if it in a certain range, it would change direction.
BUT here’s the issue: It is set to blacklist all children of the Light folder, which is where all the light particles are.
Yet as the clip shows, the particles also collide with each other, more frequently when FPS is low.
And all Light Particles are in the Light folder, as that’s how I control them.
Thanks in advance!