flingengine / flingengine/FlingEngine

Integrate bullet physics

Open
#83 1 comment 0 reactions 0 assignees View on GitHub
big feature PRI 2
Dominant language
C++
Stars
415
Forks
16
Avg merge
18h 53m
Merged PRs (30d)
7

Description

Integrate bullet physics with our entity component system.
https://github.com/bulletphysics/bullet3

Basic rough draft of the physic system
```
// Add a 3D rigidbody component
entt::entitty e = reg.create();
Rigidbody& c = reg.assign(e, transform, force, velocity, acceleration, mass, etc....);

// Add collision body component for collision detection
entt::entitty e = reg.create();
SphereCollider& c = reg.assign(e, transform, radius);

// Add
entt::entitty e = reg.create();
Transform& c = reg.assign(e, Transform{});
Rigidbody& c = reg.assign(e, transform, force, velocity, acceleration, mass, etc....);
SphereCollider& c = reg.assign(e, transform, radius);

class PhysicSystem
{
// Update all active physics component
void Update(entt::registry reg);
};

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.