SphereShapeSampler

lumin.particles. SphereShapeSampler

new SphereShapeSampler()

Default constructor

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getInnerRadius() → {number}

Returns the sphere 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 sphere outer radius.

Returns:

radius

Type
number

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

setInnerRadius(radius)

Sets the sphere 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 sphere outer radius.

Parameters:
Name Type Description
radius number

Radius

lumin.particles. SphereShapeSampler

new SphereShapeSampler(outerRadius, innerRadiusopt)

Constructor

Parameters:
Name Type Attributes Default Description
outerRadius number

Outer radius of the sphere

innerRadius number <optional>
0

Inner radius of the sphere

Extends

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getInnerRadius() → {number}

Returns the sphere 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 sphere outer radius.

Returns:

radius

Type
number

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

setInnerRadius(radius)

Sets the sphere 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 sphere outer radius.

Parameters:
Name Type Description
radius number

Radius