Fixture class.
More...
#include <fixture.h>
◆ get_id()
int clan::Fixture::get_id |
( |
| ) |
const |
Return the world's id of the fixture.
◆ get_owner_body()
Body& clan::Fixture::get_owner_body |
( |
| ) |
const |
Return the body that this fixture is owned by.
◆ is_dummy()
bool clan::Fixture::is_dummy |
( |
| ) |
const |
Returns true if this fixture is a dummy fixture.
◆ is_null()
bool clan::Fixture::is_null |
( |
| ) |
const |
|
inline |
Returns true if this object is invalid.
◆ is_sensor()
bool clan::Fixture::is_sensor |
( |
| ) |
const |
◆ kill()
void clan::Fixture::kill |
( |
| ) |
|
Removes the fixture from the simulation.
◆ operator=()
◆ set_as_sensor()
void clan::Fixture::set_as_sensor |
( |
const bool |
value = true | ) |
|
Set the fixture as a sensor.
◆ sig_begin_collision()
Signal emitted when a collision with other fixture occurs.
- Returns
- Signal_v1<Fixture>
◆ sig_end_collision()
Signal emitted when a collision with other fixture ends.
- Returns
- Signal_v1<Fixture>
◆ sig_fixture_deletion()
Signal_v0& clan::Fixture::sig_fixture_deletion |
( |
| ) |
|
Signal emitted when the fixture is deleted.
- Returns
- Signal_v0
◆ test_point()
bool clan::Fixture::test_point |
( |
const Vec2f & |
p | ) |
const |
Checks given point for collision with the fixture.
◆ throw_if_null()
void clan::Fixture::throw_if_null |
( |
| ) |
const |
Throw an exception if this object is invalid.
◆ Body_Impl
◆ Fixture_Impl
friend class Fixture_Impl |
|
friend |
◆ PhysicsContext
◆ PhysicsContext_Impl
friend class PhysicsContext_Impl |
|
friend |
◆ PhysicsListener
friend class PhysicsListener |
|
friend |
◆ PhysicsQueryAssistant_Impl
friend class PhysicsQueryAssistant_Impl |
|
friend |
The documentation for this class was generated from the following file: