added rotation
This commit is contained in:
@@ -119,17 +119,15 @@ namespace OpenEngine {
|
||||
|
||||
struct PhysicsBodyComponent
|
||||
{
|
||||
enum class BodyType { Static = 0, Kinematic, Dynamic };
|
||||
|
||||
BodyID body;
|
||||
|
||||
BodyType type = BodyType::Dynamic;
|
||||
|
||||
float linear_damping = 0.05f;
|
||||
float angular_damping = 0.05f;
|
||||
float gravity_factor = 1.0f;
|
||||
|
||||
EMotionType type = EMotionType::Dynamic;
|
||||
EActivation initial_activation_state = EActivation::Activate;
|
||||
ObjectLayer layer = Layers::MOVING;
|
||||
|
||||
PhysicsBodyComponent() = default;
|
||||
PhysicsBodyComponent(const PhysicsBodyComponent&) = default;
|
||||
|
||||
Reference in New Issue
Block a user