Skip to content

Contact

Struct

Source: CollisionSystem.h

Description

Represents a contact point between two physics bodies.

Properties

NameTypeDescription
bodyApixelroot32::core::PhysicsActor*First body in the contact.
bodyBpixelroot32::core::PhysicsActor*Second body in the contact.
normalpixelroot32::math::Vector2Contact normal vector.
contactPointpixelroot32::math::Vector2Point of contact.
penetrationpixelroot32::math::ScalarPenetration depth.
restitutionpixelroot32::math::ScalarCombined restitution coefficient.
isSensorContactboolTrue if either body is a sensor; no physics response applied.

Released under the MIT License.