Rapier C — 2D / f32 0.36.0+c.0
Loading...
Searching...
No Matches
R2ShapeCastOptions Struct Reference

Sweep termination settings. More...

#include <rapier.h>

Data Fields

R2Real max_time_of_impact
 Maximum sweep parameter; movement is velocity multiplied by this time.
R2Real target_distance
 Nonnegative separation at which a shape cast counts as a hit.
R2Bool stop_at_penetration
 Whether to stop at t = 0 for an initial overlap.
R2Bool compute_impact_geometry_on_penetration
 Whether to compute witness points/normals for an initial overlap.

Detailed Description

Sweep termination settings.

Initialize with r2DefaultShapeCastOptions.

Field Documentation

◆ compute_impact_geometry_on_penetration

R2Bool R2ShapeCastOptions::compute_impact_geometry_on_penetration

Whether to compute witness points/normals for an initial overlap.

◆ max_time_of_impact

R2Real R2ShapeCastOptions::max_time_of_impact

Maximum sweep parameter; movement is velocity multiplied by this time.

◆ stop_at_penetration

R2Bool R2ShapeCastOptions::stop_at_penetration

Whether to stop at t = 0 for an initial overlap.

◆ target_distance

R2Real R2ShapeCastOptions::target_distance

Nonnegative separation at which a shape cast counts as a hit.


The documentation for this struct was generated from the following file: