Table of Contents

Class ContactInfo

Namespace
Fantas.Physics
Assembly
Fantas.dll

Contains the information of a contact/collision between two PhysicsBodys.

public sealed class ContactInfo
Inheritance
ContactInfo
Inherited Members

Properties

BodyA

Body A in the contact

public PhysicsBody BodyA { get; }

Property Value

PhysicsBody

BodyB

Body B in the contact

public PhysicsBody BodyB { get; }

Property Value

PhysicsBody

CollisionImpulse

Collision impulse

public double CollisionImpulse { get; }

Property Value

double

ContactNormal

Collision direction.

public Vector2 ContactNormal { get; }

Property Value

Vector2

ContactPointA

Point of contact A.

public PointF ContactPointA { get; }

Property Value

PointF

ContactPointB

Point of contact B.

public PointF ContactPointB { get; }

Property Value

PointF