EllipsoidShapeSampler

lumin.particles. EllipsoidShapeSampler

new EllipsoidShapeSampler()

Default constructor

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getCut() → {number}

Returns the ellipsoid cut.

Returns:

cut

Type
number

getInnerRadius() → {number}

Returns the ellipsoid inner radius.

Returns:

radius

Type
number

getLinearVelocity() → {vec3}

Inherited From:

Returns the linear velocity of the mesh.

Returns:

velocity

Type
vec3

getOuterRadius() → {number}

Returns the ellipsoid outer radius.

Returns:

radius

Type
number

getScale() → {vec3}

Returns the ellipsoid scale.

Returns:

scale

Type
vec3

getType() → {lumin.particles.ShapeSampler.Type}

Inherited From:

Return the shape sampler type.

Returns:

the type

Type
lumin.particles.ShapeSampler.Type

setAngularVelocity(velocity)

Inherited From:

Sets the angular velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setCut(cut)

Sets the ellipsoid cut.

Parameters:
Name Type Description
cut number

Cut

setInnerRadius(radius)

Sets the ellipsoid inner radius.

Parameters:
Name Type Description
radius number

Radius

setLinearVelocity(velocity)

Inherited From:

Sets the linear velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setOuterRadius(radius)

Sets the ellipsoid outer radius.

Parameters:
Name Type Description
radius number

Radius

setScale(scale)

Sets the ellipsoid scale.

Parameters:
Name Type Description
scale vec3

Scale

lumin.particles. EllipsoidShapeSampler

new EllipsoidShapeSampler(outerRadius, innerRadius, cut, scale)

Constructor

Parameters:
Name Type Description
outerRadius number

Outer radius of the ellipsoid

innerRadius number

Inner radius of the ellipsoid

cut number

Cut plane position of for the ellipsoid. 1 = full sphere, 0 = entire sphere removed

scale vec3

Scale of the ellipsoid

Extends

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getCut() → {number}

Returns the ellipsoid cut.

Returns:

cut

Type
number

getInnerRadius() → {number}

Returns the ellipsoid inner radius.

Returns:

radius

Type
number

getLinearVelocity() → {vec3}

Inherited From:

Returns the linear velocity of the mesh.

Returns:

velocity

Type
vec3

getOuterRadius() → {number}

Returns the ellipsoid outer radius.

Returns:

radius

Type
number

getScale() → {vec3}

Returns the ellipsoid scale.

Returns:

scale

Type
vec3

getType() → {lumin.particles.ShapeSampler.Type}

Inherited From:

Return the shape sampler type.

Returns:

the type

Type
lumin.particles.ShapeSampler.Type

setAngularVelocity(velocity)

Inherited From:

Sets the angular velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setCut(cut)

Sets the ellipsoid cut.

Parameters:
Name Type Description
cut number

Cut

setInnerRadius(radius)

Sets the ellipsoid inner radius.

Parameters:
Name Type Description
radius number

Radius

setLinearVelocity(velocity)

Inherited From:

Sets the linear velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setOuterRadius(radius)

Sets the ellipsoid outer radius.

Parameters:
Name Type Description
radius number

Radius

setScale(scale)

Sets the ellipsoid scale.

Parameters:
Name Type Description
scale vec3

Scale