Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::RigidBody2D Struct Reference

#include <RigidBody2D.hpp>

Public Member Functions

 RigidBody2D ()=default

Public Attributes

BodyType bodyType {BodyType::Dynamic}
f32 gravityScale {1.0f}
f32 linearDamping {0.0f}
f32 angularDamping {0.0f}
bool fixedRotation {false}
bool bullet {false}
bool enabled {true}

Detailed Description

Definition at line 19 of file RigidBody2D.hpp.

Constructor & Destructor Documentation

◆ RigidBody2D()

esengine::ecs::RigidBody2D::RigidBody2D ( )
default

Member Data Documentation

◆ angularDamping

f32 esengine::ecs::RigidBody2D::angularDamping {0.0f}

Definition at line 30 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ bodyType

BodyType esengine::ecs::RigidBody2D::bodyType {BodyType::Dynamic}

Definition at line 21 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ bullet

bool esengine::ecs::RigidBody2D::bullet {false}

Definition at line 36 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ enabled

bool esengine::ecs::RigidBody2D::enabled {true}

Definition at line 39 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ fixedRotation

bool esengine::ecs::RigidBody2D::fixedRotation {false}

Definition at line 33 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ gravityScale

f32 esengine::ecs::RigidBody2D::gravityScale {1.0f}

Definition at line 24 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().

◆ linearDamping

f32 esengine::ecs::RigidBody2D::linearDamping {0.0f}

Definition at line 27 of file RigidBody2D.hpp.

Referenced by rigidbody2dApplyJS(), and rigidbody2dToJS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/RigidBody2D.hpp