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

#include <Solver.h>

Public Member Functions

std::size_t size () const
 
template<typename Fn >
void for_each_column (Fn fn)
 
void clear ()
 
void size_velocity_columns ()
 

Public Attributes

std::vector< int32_t > ia
 
std::vector< int32_t > ib
 
std::vector< float > nx
 
std::vector< float > ny
 
std::vector< float > tx
 
std::vector< float > ty
 
std::vector< float > wA
 
std::vector< float > wB
 
std::vector< float > IA
 
std::vector< float > IB
 
std::vector< float > restitution
 
std::vector< float > mu_s
 
std::vector< float > mu_k
 
std::vector< uint32_t > contact_index
 
std::vector< float > jn_sum
 
std::vector< float > vax
 
std::vector< float > vay
 
std::vector< float > wav
 
std::vector< float > vbx
 
std::vector< float > vby
 
std::vector< float > wbv
 
std::vector< float > rAx [2]
 
std::vector< float > rAy [2]
 
std::vector< float > rBx [2]
 
std::vector< float > rBy [2]
 
std::vector< float > ra_n [2]
 
std::vector< float > rb_n [2]
 
std::vector< float > ra_t [2]
 
std::vector< float > rb_t [2]
 
std::vector< float > K_n [2]
 
std::vector< float > K_t [2]
 
std::vector< float > vn_pre [2]
 
std::vector< float > jn [2]
 
std::vector< float > jt [2]
 

Detailed Description

Definition at line 289 of file Solver.h.

Member Function Documentation

◆ clear()

void FxContactBatch::clear ( )
inline

Definition at line 352 of file Solver.h.

◆ for_each_column()

template<typename Fn >
void FxContactBatch::for_each_column ( Fn  fn)
inline

Definition at line 313 of file Solver.h.

◆ size()

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

Definition at line 308 of file Solver.h.

◆ size_velocity_columns()

void FxContactBatch::size_velocity_columns ( )
inline

Definition at line 357 of file Solver.h.

Member Data Documentation

◆ contact_index

std::vector<uint32_t> FxContactBatch::contact_index

Definition at line 295 of file Solver.h.

◆ ia

std::vector<int32_t> FxContactBatch::ia

Definition at line 291 of file Solver.h.

◆ IA

std::vector<float> FxContactBatch::IA

Definition at line 293 of file Solver.h.

◆ ib

std::vector<int32_t> FxContactBatch::ib

Definition at line 291 of file Solver.h.

◆ IB

std::vector<float> FxContactBatch::IB

Definition at line 293 of file Solver.h.

◆ jn

std::vector<float> FxContactBatch::jn[2]

Definition at line 306 of file Solver.h.

◆ jn_sum

std::vector<float> FxContactBatch::jn_sum

Definition at line 296 of file Solver.h.

◆ jt

std::vector<float> FxContactBatch::jt[2]

Definition at line 306 of file Solver.h.

◆ K_n

std::vector<float> FxContactBatch::K_n[2]

Definition at line 305 of file Solver.h.

◆ K_t

std::vector<float> FxContactBatch::K_t[2]

Definition at line 305 of file Solver.h.

◆ mu_k

std::vector<float> FxContactBatch::mu_k

Definition at line 294 of file Solver.h.

◆ mu_s

std::vector<float> FxContactBatch::mu_s

Definition at line 294 of file Solver.h.

◆ nx

std::vector<float> FxContactBatch::nx

Definition at line 292 of file Solver.h.

◆ ny

std::vector<float> FxContactBatch::ny

Definition at line 292 of file Solver.h.

◆ ra_n

std::vector<float> FxContactBatch::ra_n[2]

Definition at line 304 of file Solver.h.

◆ ra_t

std::vector<float> FxContactBatch::ra_t[2]

Definition at line 304 of file Solver.h.

◆ rAx

std::vector<float> FxContactBatch::rAx[2]

Definition at line 303 of file Solver.h.

◆ rAy

std::vector<float> FxContactBatch::rAy[2]

Definition at line 303 of file Solver.h.

◆ rb_n

std::vector<float> FxContactBatch::rb_n[2]

Definition at line 304 of file Solver.h.

◆ rb_t

std::vector<float> FxContactBatch::rb_t[2]

Definition at line 304 of file Solver.h.

◆ rBx

std::vector<float> FxContactBatch::rBx[2]

Definition at line 303 of file Solver.h.

◆ rBy

std::vector<float> FxContactBatch::rBy[2]

Definition at line 303 of file Solver.h.

◆ restitution

std::vector<float> FxContactBatch::restitution

Definition at line 294 of file Solver.h.

◆ tx

std::vector<float> FxContactBatch::tx

Definition at line 292 of file Solver.h.

◆ ty

std::vector<float> FxContactBatch::ty

Definition at line 292 of file Solver.h.

◆ vax

std::vector<float> FxContactBatch::vax

Definition at line 300 of file Solver.h.

◆ vay

std::vector<float> FxContactBatch::vay

Definition at line 300 of file Solver.h.

◆ vbx

std::vector<float> FxContactBatch::vbx

Definition at line 300 of file Solver.h.

◆ vby

std::vector<float> FxContactBatch::vby

Definition at line 300 of file Solver.h.

◆ vn_pre

std::vector<float> FxContactBatch::vn_pre[2]

Definition at line 305 of file Solver.h.

◆ wA

std::vector<float> FxContactBatch::wA

Definition at line 293 of file Solver.h.

◆ wav

std::vector<float> FxContactBatch::wav

Definition at line 300 of file Solver.h.

◆ wB

std::vector<float> FxContactBatch::wB

Definition at line 293 of file Solver.h.

◆ wbv

std::vector<float> FxContactBatch::wbv

Definition at line 300 of file Solver.h.


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