Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxSolverBodies Struct Reference

#include <Solver.h>

Public Member Functions

void resize (std::size_t n)
 
std::size_t size () const
 
FxVec2f velocity_at (int32_t body, const FxVec2f &r) const
 

Public Attributes

std::vector< float > vx
 
std::vector< float > vy
 
std::vector< float > w
 
std::vector< float > inv_m
 
std::vector< float > inv_i
 

Detailed Description

Definition at line 28 of file Solver.h.

Member Function Documentation

◆ resize()

void FxSolverBodies::resize ( std::size_t  n)
inline

Definition at line 32 of file Solver.h.

◆ size()

std::size_t FxSolverBodies::size ( ) const
inline

Definition at line 40 of file Solver.h.

◆ velocity_at()

FxVec2f FxSolverBodies::velocity_at ( int32_t  body,
const FxVec2f &  r 
) const
inline

Definition at line 44 of file Solver.h.

Member Data Documentation

◆ inv_i

std::vector<float> FxSolverBodies::inv_i

Definition at line 30 of file Solver.h.

◆ inv_m

std::vector<float> FxSolverBodies::inv_m

Definition at line 30 of file Solver.h.

◆ vx

std::vector<float> FxSolverBodies::vx

Definition at line 29 of file Solver.h.

◆ vy

std::vector<float> FxSolverBodies::vy

Definition at line 29 of file Solver.h.

◆ w

std::vector<float> FxSolverBodies::w

Definition at line 29 of file Solver.h.


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