signals-cpp
Loading...
Searching...
No Matches
RigidBodyParams2D Struct Reference

Parameters for a 2D rigid body model. More...

#include <Models.h>

Public Member Functions

 RigidBodyParams2D ()
 

Public Attributes

double m
 Model mass.
 
double J
 Moment of inertia.
 
Vector2d g
 Gravitational vector.
 

Detailed Description

Parameters for a 2D rigid body model.

Picture a mass (not necessarily a point mass) confined to a 2D plane.

Constructor & Destructor Documentation

◆ RigidBodyParams2D()

RigidBodyParams2D::RigidBodyParams2D ( )
inline

Member Data Documentation

◆ g

Vector2d RigidBodyParams2D::g

Gravitational vector.

Essentially defines which way is "down." Set to all zeroes if e.g., the 2D plane represents flat ground.

◆ J

double RigidBodyParams2D::J

Moment of inertia.

The moment of inertia is about the axis coming out of the 2D plane.

◆ m

double RigidBodyParams2D::m

Model mass.


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