ConeShapeSampler

lumin.particles. ConeShapeSampler

new ConeShapeSampler()

Default constructor

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getHeight() → {number}

Returns the cone height.

Returns:

height

Type
number

getLinearVelocity() → {vec3}

Inherited From:

Returns the linear velocity of the mesh.

Returns:

velocity

Type
vec3

getRadius() → {number}

Returns the cone 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

setHeight(height)

Sets the cone height.

Parameters:
Name Type Description
height number

Height

setLinearVelocity(velocity)

Inherited From:

Sets the linear velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setRadius(radius)

Sets the cone radius.

Parameters:
Name Type Description
radius number

Radius

lumin.particles. ConeShapeSampler

new ConeShapeSampler(radius, height)

Constructor

Parameters:
Name Type Description
radius number

Radius of the cone

height number

Height of the cone

Extends

Methods

getAngularVelocity() → {vec3}

Inherited From:

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getHeight() → {number}

Returns the cone height.

Returns:

height

Type
number

getLinearVelocity() → {vec3}

Inherited From:

Returns the linear velocity of the mesh.

Returns:

velocity

Type
vec3

getRadius() → {number}

Returns the cone 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

setHeight(height)

Sets the cone height.

Parameters:
Name Type Description
height number

Height

setLinearVelocity(velocity)

Inherited From:

Sets the linear velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setRadius(radius)

Sets the cone radius.

Parameters:
Name Type Description
radius number

Radius