Information about a physics contact event. More...

Import Statement: import Felgo 3.0



Detailed Description

Contains information about an event where to fixtures collided. This type is only used in the World::preSolve and World::postSolve signals.

Property Documentation

childIndexA : int

The child primitive index for fixtureA.

childIndexB : int

The child primitive index for fixtureB.

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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support