Definition of a self-contained constraint "island". More...
#include <Island.hpp>
Public Types | |
| using | Bodies = std::vector< BodyID > |
| Container type for body identifiers. | |
| using | Contacts = std::vector< ContactID > |
| Container type for contact identifiers. | |
| using | Joints = std::vector< JointID > |
| Container type for joint identifiers. | |
Public Attributes | |
| Bodies | bodies |
| Container of body identifiers. | |
| Contacts | contacts |
| Container of contact identifiers. | |
| Joints | joints |
| Container of joint identifiers. | |
Related Functions | |
(Note that these are not member functions.) | |
| void | Reserve (Island &island, BodyCounter bodies, ContactCounter contacts, JointCounter joints) |
| Reserves space ahead of time. | |
| void | Clear (Island &island) noexcept |
| Clears the island containers. | |
| bool | IsFullOfBodies (const Island &island) |
| Determines whether the given island is full of bodies. | |
| bool | IsFullOfContacts (const Island &island) |
| Determines whether the given island is full of contacts. | |
| std::size_t | Count (const Island &island, BodyID entry) |
| Counts the number of occurrences of the given entry in the given island. | |
| std::size_t | Count (const Island &island, ContactID entry) |
| Counts the number of occurrences of the given entry in the given island. | |
| std::size_t | Count (const Island &island, JointID entry) |
| Counts the number of occurrences of the given entry in the given island. | |
Definition of a self-contained constraint "island".
A container of bodies contacts and joints relevant to handling world dynamics.