WaterVolumeInteractionOptions
Collider-response controls for water driven by a shared interaction world.
These are the water side of the contract: the world publishes where each
collider is and how fast it is moving, and these values decide what the
fluid does about it. They are independent of the per-source friction and
restitution carried by a GPUInteractionWorld source — for water,
the simulation-side values below are the ones that apply.
Import
import type { WaterVolumeInteractionOptions } from "three-blocks/water";
Declaration
interface WaterVolumeInteractionOptions
Members
enabled
enabled?: boolean | undefined;
Respond to shared colliders at all; defaults to true.
layer
layer?: number | undefined;
Interaction layer bits this volume occupies; defaults to 1.
mask
mask?: number | undefined;
Interaction mask bits this volume senses; defaults to every bit.
friction
friction?: number | undefined;
Tangential fraction removed on contact; defaults to 0, so water slides.
restitution
restitution?: number | undefined;
Approach fraction reflected on contact; defaults to 0, so impacts are absorbed.
particleRadius
particleRadius?: number | undefined;
Particle radius at which the response triggers, in world units; defaults to 0.
pushRate
pushRate?: number | undefined;
Separation speed gained per world unit of penetration; defaults to 30.
maxSeparationSpeed
maxSeparationSpeed?: number | undefined;
Cap on the separation speed, in world units per second; defaults to 6.