hx3d  1
2D/3D Simple Game Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
hx3d::physics2d::Mass Struct Reference

Physical mass data. More...

#include <mass.hpp>

Public Member Functions

void setMass (float amount)
 Set the current mass. More...
 
void setInertia (float amount)
 Set the current inertia. More...
 

Public Attributes

float mass
 Current mass.
 
float invMass
 Current inverted mass.
 
float inertia
 Current inertia.
 
float invInertia
 Current inverted inertia.
 

Detailed Description

Physical mass data.

Definition at line 30 of file mass.hpp.

Member Function Documentation

void hx3d::physics2d::Mass::setInertia ( float  amount)

Set the current inertia.

Compute the inverted inertia.

Parameters
amountAmount

Definition at line 19 of file mass.cpp.

void hx3d::physics2d::Mass::setMass ( float  amount)

Set the current mass.

Compute the inverted mass.

Parameters
amountAmount

Definition at line 14 of file mass.cpp.


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