ShapeSampler

lumin.particles. ShapeSampler

Classes

Type

Methods

getAngularVelocity() → {vec3}

Returns the angular velocity of the mesh.

Returns:

velocity

Type
vec3

getLinearVelocity() → {vec3}

Returns the linear velocity of the mesh.

Returns:

velocity

Type
vec3

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

Return the shape sampler type.

Returns:

the type

Type
lumin.particles.ShapeSampler.Type

setAngularVelocity(velocity)

Sets the angular velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity

setLinearVelocity(velocity)

Sets the linear velocity to apply to the mesh.

Parameters:
Name Type Description
velocity vec3

Velocity