Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Constrain particles on axis
#7
(22-02-2019, 12:57 PM)josemendez Wrote: Hi,

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.
Hello.
That is a hard problem for me. Although the template is public static Vector3 Project(Vector3 vectorVector3 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?
Reply


Messages In This Thread
Constrain particles on axis - by Richard - 22-02-2019, 09:38 AM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 10:37 AM
RE: Constrain particles on axis - by Richard - 22-02-2019, 11:08 AM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 11:27 AM
RE: Constrain particles on axis - by Richard - 22-02-2019, 12:22 PM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 12:57 PM
RE: Constrain particles on axis - by Richard - 22-02-2019, 01:22 PM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 02:02 PM
RE: Constrain particles on axis - by Richard - 22-02-2019, 02:49 PM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 03:01 PM
RE: Constrain particles on axis - by Richard - 22-02-2019, 03:31 PM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 03:46 PM
RE: Constrain particles on axis - by Richard - 22-02-2019, 03:55 PM
RE: Constrain particles on axis - by josemendez - 22-02-2019, 06:44 PM
RE: Constrain particles on axis - by Richard - 22-02-2019, 11:35 PM