07-05-2021, 06:36 PM
(07-05-2021, 04:26 PM)josemendez Wrote: This script does exactly the same as your previous one, but in a more convoluted way: you’re storing the position in a matrix, then immediately extracting and applying it. So the result is the same as before.
Also, you’re applying the particle rotation to your sphere directly, which will make no differente since a sphere rotating around its center looks as if was not rotating at all.
You need to express the position of your sphere in the particle’s local space. Read about local/world space and basis vectors/matrices, this is a fundamental part of making games that you will use very often.
On monday I will write a small sample script for you. cheers!
Okay thanks a lot. Meanwhile I will also try to figure it out.