HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.1
Loading...
Searching...
No Matches
Public Attributes | List of all members
Box2D.ContactHitEvent Struct Reference

A hit touch event is generated when two shapes collide with a speed faster than the hit speed threshold. This may be reported for speculative contacts that have a confirmed impulse. More...

Collaboration diagram for Box2D.ContactHitEvent:
Collaboration graph
[legend]

Public Attributes

readonly Shape ShapeA
 The first shape.
 
readonly Shape ShapeB
 The second shape.
 
readonly Vec2 Point
 Point where the shapes hit at the beginning of the time step. This is a mid-point between the two surfaces. It could be at speculative point where the two shapes were not touching at the beginning of the time step.
 
readonly Vec2 Normal
 Normal vector pointing from shape A to shape B.
 
readonly float ApproachSpeed
 The speed the shapes are approaching. Always positive. Typically in meters per second.
 

Detailed Description

A hit touch event is generated when two shapes collide with a speed faster than the hit speed threshold. This may be reported for speculative contacts that have a confirmed impulse.


The documentation for this struct was generated from the following file: