Information about a physics contact event. More...
Import Statement: | import Felgo 4.0 |
Inherits: |
Contains information about an event where to fixtures collided. This type is only used in the World::preSolve and World::postSolve signals.
enabled : bool |
This property holds whether the contact event is enabled. If it is set to false in World::preSolve, the event will not be passed to the contact solve and thus have no effect and will be ignored.
The default value is true
.
fixtureA : Fixture |
The first contacting fixture.
fixtureB : Fixture |
The second contacting fixture.
friction : real |
Returns the contact friction and changes it.
See also Fixture::friction.
restitution : real |
Returns the contact restitution and changes it.
See also Fixture::restitution.
tangentSpeed : real |
Returns the contact tangent speed and changes it.
This can make bodies act like conveyor belts, as if their edges were moving.
See also Fixture::restitution.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: