struct PhysicsContact

robot_2Generated
code_blocksInput

Description

The `PhysicsContact` struct in the Sandbox namespace represents a contact point in a physics simulation. It provides detailed information about the contact, including the position, speed, and impulse of the contact point. This struct is immutable and is marked with the `IsReadOnly` attribute, ensuring that its fields cannot be modified after creation. It is also exposed for use in the s&box environment.

Members

Instance Fields

Member NameSummary
PointThe position of the contact point in world coordinates.
SpeedThe speed of the contact point at the time of collision.
NormalThe normal vector at the contact point, indicating the direction of the surface.
NormalSpeedThe speed along the normal vector at the contact point.
ImpulseThe impulse applied at the contact point during the collision.