Table of Contents

Class JointOptionsBase

Namespace
Stride.CommunityToolkit.Box2D
Assembly
Stride.CommunityToolkit.Box2D.dll

The settings every Box2D joint shares. A property left null keeps Box2D's default for that joint type, so an empty options object is the same as passing none.

public abstract record JointOptionsBase : IEquatable<JointOptionsBase>
Inheritance
JointOptionsBase
Implements
Derived

Properties

CollideConnected

Whether the two bodies still collide with each other. Box2D default: no.

public bool? CollideConnected { get; init; }

Property Value

bool?

ForceThreshold

Force above which the joint raises a joint event, in newtons. Box2D default: never.

public float? ForceThreshold { get; init; }

Property Value

float?

TorqueThreshold

Torque above which the joint raises a joint event, in newton-metres. Box2D default: never.

public float? TorqueThreshold { get; init; }

Property Value

float?