Skip to content

PhysicsWorld.SetRestitutionThreshold(float) Method

Definition

Namespace: Brine2D.Physics

Sets the minimum impact speed \(pixels/s\) required for restitution \(bounciness\) to be applied. Below this threshold contacts are treated as inelastic. Set to 0 to always apply restitution. Leave unset to use the Box2D default.

C#
public void SetRestitutionThreshold(float threshold);

Parameters

threshold System.Single