mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'mass' and 'elasticity' entity properties
This commit is contained in:
parent
f945719d7a
commit
ad32d7b6db
5 changed files with 20 additions and 0 deletions
|
|
@ -45,6 +45,12 @@ struct EntityDef {
|
|||
/// @brief Is the entity solid (blocks other entities)
|
||||
bool solid = false;
|
||||
|
||||
/// @brief Mass for physics calculations
|
||||
float mass = 1.0f;
|
||||
|
||||
/// @brief Elasticity for physics calculations
|
||||
float elasticity = 0.0f;
|
||||
|
||||
/// @brief Max obstacle height that does not require jumping
|
||||
float stepHeight = 0.5f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue