Package jsim.material
Class Material
java.lang.Object
jsim.material.Material
Physical surface properties for collision response.
Friction and restitution are dimensionless coefficients in [0, 1] unless otherwise noted. Coefficient of friction > 1 is physically valid (rubber on rubber) and is allowed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MaterialHigh-friction carpet (typical FRC field surface).static final MaterialGeneral-purpose material with moderate friction and low restitution.final doubleCoefficient of kinetic friction.static final MaterialLow-friction icy surface.final doubleCoefficient of restitution (0 = perfectly inelastic, 1 = perfectly elastic).static final MaterialHigh-friction, high-restitution rubber.static final MaterialLow-friction steel surface.static final MaterialInfinite-mass static boundary — frictionless, inelastic.static final MaterialModerate-friction wood surface. -
Constructor Summary
ConstructorsConstructorDescriptionMaterial(double friction, double restitution) Create a material with the given friction and restitution coefficients. -
Method Summary
-
Field Details
-
friction
public final double frictionCoefficient of kinetic friction. -
restitution
public final double restitutionCoefficient of restitution (0 = perfectly inelastic, 1 = perfectly elastic). -
DEFAULT
General-purpose material with moderate friction and low restitution. -
ICE
Low-friction icy surface. -
RUBBER
High-friction, high-restitution rubber. -
STEEL
Low-friction steel surface. -
CARPET
High-friction carpet (typical FRC field surface). -
WOOD
Moderate-friction wood surface. -
WALL
Infinite-mass static boundary — frictionless, inelastic.
-
-
Constructor Details
-
Material
public Material(double friction, double restitution) Create a material with the given friction and restitution coefficients.- Parameters:
friction- coefficient of kinetic friction (must be >= 0)restitution- coefficient of restitution, in [0, 1]
-