Maarten Baert's website

Game Maker / C++ projects

Home Model Creator ExtremePhysics Game Maker DLLs   Recent comments Search

Last modified: Tue, 1 Mar 2011
Refresh

Contact


ep_contact_destroy

ep_contact_destroy(world_id, contact_id)

Destroys the contact with the given id.

This function can be used to disable some collisions (e.g. to create one-way platforms). This function should be used after calling ep_world_update_contacts but before calling ep_world_simulate_step (in all other cases destroying contacts doesn't have any effect). ep_world_update_contacts will recreate the contact every step, so you will have to destroy it again every step to disable the collision.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_exists

ep_contact_exists(world_id, contact_id)

Returns whether the contact with the given id exists.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_body1

ep_contact_get_body1(world_id, contact_id)

Returns the id of the first body this contact is connected with.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_body2

ep_contact_get_body2(world_id, contact_id)

Returns the id of the second body this contact is connected with.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_shape1

ep_contact_get_shape1(world_id, contact_id)

Returns the id of the shape of the first body this contact is connected with.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_shape2

ep_contact_get_shape2(world_id, contact_id)

Returns the id of the shape of the second body this contact is connected with.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_normal_x

ep_contact_get_normal_x(world_id, contact_id)

Returns the x component of the contact normal.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_normal_y

ep_contact_get_normal_y(world_id, contact_id)

Returns the y component of the contact normal.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_active

ep_contact_get_point1_active(world_id, contact_id)

Returns whether the first contact point is active.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_active

ep_contact_get_point2_active(world_id, contact_id)

Returns whether the second contact point is active.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_x

ep_contact_get_point1_x(world_id, contact_id)

Returns the x component of the position of the first contact point (in world coordinates).

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_y

ep_contact_get_point1_y(world_id, contact_id)

Returns the y component of the position of the first contact point (in world coordinates).

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_x

ep_contact_get_point2_x(world_id, contact_id)

Returns the x component of the position of the second contact point (in world coordinates).

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_y

ep_contact_get_point2_y(world_id, contact_id)

Returns the y component of the position of the second contact point (in world coordinates).

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_normalforce

ep_contact_get_point1_normalforce(world_id, contact_id)

Returns the normal force of the first contact point.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_tangentforce

ep_contact_get_point1_tangentforce(world_id, contact_id)

Returns the tangent force of the first contact point.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_normalforce

ep_contact_get_point2_normalforce(world_id, contact_id)

Returns the normal force of the second contact point.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_tangentforce

ep_contact_get_point2_tangentforce(world_id, contact_id)

Returns the tangent force of the second contact point.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_normalveldelta

ep_contact_get_point1_normalveldelta(world_id, contact_id)

Returns the velocity difference of the first contact point at the start of the step in the direction of the normal vector.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point1_tangentveldelta

ep_contact_get_point1_tangentveldelta(world_id, contact_id)

Returns the velocity difference of the first contact point at the start of the step in the direction perpendicular to the normal vector.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_normalveldelta

ep_contact_get_point2_normalveldelta(world_id, contact_id)

Returns the velocity difference of the second contact point at the start of the step in the direction of the normal vector.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_get_point2_tangentveldelta

ep_contact_get_point2_tangentveldelta(world_id, contact_id)

Returns the velocity difference of the second contact point at the start of the step in the direction perpendicular to the normal vector.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_previous

ep_contact_previous(world_id, contact_id)

Returns the id of the previous contact, or 0 if there is no previous contact.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


ep_contact_next

ep_contact_next(world_id, contact_id)

Returns the id of the next contact, or 0 if there is no next contact.

  • world_id: The id of the world.

  • contact_id: The id of the contact.


Comments

There are no comments yet.

Write a comment