Represents one particle of a points cloud system.
Creates a Point Cloud object. Don't create particles manually, use instead the PCS internal tools like _addParticle()
(integer) is the particle index in the PCS pool. It's also the particle identifier.
(PointsGroup) is the group the particle belongs to
(integer) is the group identifier in the PCS.
(integer) is the index of the particle in the current point group (ex: the 10th point of addPoints(30))
defines the PCS it is associated to
Group this particle belongs to
The color of the particle
Group id of this particle
particle global index
In GroupSearch playground for idxInGroup
Index of the particle in its group id (Internal use)
IdSearch playground for parentId
Parent particle Id, if any. Default null.
The pivot point in the particle local space.
positionSearch playground for position
The world space position of the particle.
rotationSearch playground for rotation
The world space rotation of the particle. (Not use if rotationQuaternion is set)
QuaternionSearch playground for rotationQuaternion
The world space rotation quaternion of the particle.
From PivotSearch playground for translateFromPivot
Must the particle be translated from its pivot point in its local space ? In this case, the pivot point is set at the origin of the particle local space and the particle is translated. Default : false
The uv of the particle.
velocitySearch playground for velocity
The current speed of the particle.
MeshSearch playground for intersectsMesh
Returns a boolean. True if the particle intersects a mesh, else false The intersection is computed on the particle position and Axis Aligned Bounding Box (AABB) or Sphere
is the object (point or mesh) what the intersection is computed against
is boolean flag when false (default) bounding box of mesh is used, when true the bounding sphere is used
true if it intersects