(22-02-2019, 12:57 PM)josemendez Wrote: Hi,Hello.
That's simply a function with two input parameters. You should read more on how C# and programming in general works, as these are very basic issues.
You don't need to add a rigidbody component to particles, they already have a velocity. In fact you could not add a component to them even if you wanted, as they are not GameObjects. You just need to use Vector3.Project on their velocity, that's it.
That is a hard problem for me. Although the template is public static Vector3 Project(Vector3 vector, Vector3 onNormal);, transform is applied in the case.
In case of public static Vector3 Project(Vector3 vector, Vector3 onNormal);, Vector3 vector means actual movement of particle (with nothing processing) and Vector3 onNormal means direction I want them to move ( if I constrain on y and z axis, vector3 (0, 1, 1)), and then Vector3 Project is how I would like them to move?