Table of Contents

Struct Contact2AccumulatedImpulses

Namespace
BepuPhysics.Constraints.Contact
Assembly
BepuPhysics.dll
public struct Contact2AccumulatedImpulses : IConvexContactAccumulatedImpulses<Contact2AccumulatedImpulses>, IContactAccumulatedImpulses<Contact2AccumulatedImpulses>
Implements
Inherited Members

Fields

Penetration0

public Vector<float> Penetration0

Field Value

Vector<float>

Penetration1

public Vector<float> Penetration1

Field Value

Vector<float>

Tangent

public Vector2Wide Tangent

Field Value

Vector2Wide

Twist

public Vector<float> Twist

Field Value

Vector<float>

Properties

ContactCount

public static int ContactCount { get; }

Property Value

int

Methods

GetPenetrationImpulseForContact(ref Contact2AccumulatedImpulses, int)

public static ref Vector<float> GetPenetrationImpulseForContact(ref Contact2AccumulatedImpulses impulses, int index)

Parameters

impulses Contact2AccumulatedImpulses
index int

Returns

Vector<float>

GetTangentFriction(ref Contact2AccumulatedImpulses)

public static ref Vector2Wide GetTangentFriction(ref Contact2AccumulatedImpulses impulses)

Parameters

impulses Contact2AccumulatedImpulses

Returns

Vector2Wide

GetTwistFriction(ref Contact2AccumulatedImpulses)

public static ref Vector<float> GetTwistFriction(ref Contact2AccumulatedImpulses impulses)

Parameters

impulses Contact2AccumulatedImpulses

Returns

Vector<float>