Table of Contents

Interface IConstraintDesc

Namespace
Stride.Physics
Assembly
Stride.Physics.dll

Description of a Constraint.

public interface IConstraintDesc

Properties

PivotInA

Position local to rigidbody A.

Vector3 PivotInA { get; }

Property Value

Vector3

PivotInB

Position local to rigidbody B.

Vector3 PivotInB { get; }

Property Value

Vector3

Remarks

Ignored when creating a body-world constraint.

Type

Type of the constraint description.

ConstraintTypes Type { get; }

Property Value

ConstraintTypes

Methods

Build(RigidbodyComponent, RigidbodyComponent)

Create a new constraint according to the description properties between bodies A and B, or between A and World.

Constraint Build(RigidbodyComponent rigidbodyA, RigidbodyComponent rigidbodyB)

Parameters

rigidbodyA RigidbodyComponent

Rigidbody A.

rigidbodyB RigidbodyComponent

Rigidbody B (may be null).

Returns

Constraint

A new constraint constructed in the Simulation. Needs to be added with AddConstraint(Constraint) to take effect.