Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Constrain particles on axis
#6
(22-02-2019, 12:22 PM)Richard Wrote: Why the document combine transform and vector like (Transform target, Vector3 railDirection)?

I cannot add rigidbody to particles so that I add constrain on axis?

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.
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