Rapier C — 3D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
R3WheelState Struct Reference

Copy of the current wheel pose, suspension, and contact state. More...

#include <rapier.h>

Data Fields

struct R3Vector center
 World-space wheel center.
struct R3Vector suspension
 World-space suspension direction.
struct R3Vector axle
 World-space axle direction.
R3Real rotation
 Wheel rotation angle in radians.
R3Real suspension_force
 Current suspension force.
R3Real suspension_length
 Current suspension length.
R3Bool is_in_contact
 Whether the wheel has ground contact.
struct R3ColliderHandle ground_object
 Ground collider handle, invalid when there is no contact.
struct R3Vector contact_point
 World-space ground contact point.
struct R3Vector contact_normal
 World-space ground contact normal.

Detailed Description

Copy of the current wheel pose, suspension, and contact state.

Field Documentation

◆ axle

struct R3Vector R3WheelState::axle

World-space axle direction.

◆ center

struct R3Vector R3WheelState::center

World-space wheel center.

◆ contact_normal

struct R3Vector R3WheelState::contact_normal

World-space ground contact normal.

◆ contact_point

struct R3Vector R3WheelState::contact_point

World-space ground contact point.

◆ ground_object

struct R3ColliderHandle R3WheelState::ground_object

Ground collider handle, invalid when there is no contact.

◆ is_in_contact

R3Bool R3WheelState::is_in_contact

Whether the wheel has ground contact.

◆ rotation

R3Real R3WheelState::rotation

Wheel rotation angle in radians.

◆ suspension

struct R3Vector R3WheelState::suspension

World-space suspension direction.

◆ suspension_force

R3Real R3WheelState::suspension_force

Current suspension force.

◆ suspension_length

R3Real R3WheelState::suspension_length

Current suspension length.


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