Table of Contents

Class Point2PointConstraintDesc

Namespace
Stride.Physics.Constraints
Assembly
Stride.Physics.dll

Description of a Point2PointConstraint.

[Display("Point to Point", null)]
[DataContract("Point2PointConstraintDesc")]
public class Point2PointConstraintDesc : IConstraintDesc
Inheritance
Point2PointConstraintDesc
Implements

Properties

PivotInA

Position local to rigidbody A.

public Vector3 PivotInA { get; set; }

Property Value

Vector3

PivotInB

Position local to rigidbody B.

public Vector3 PivotInB { get; set; }

Property Value

Vector3

Remarks

Ignored when creating a body-world constraint.

Type

Type of the constraint description.

public 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.

public Constraint Build(RigidbodyComponent bodyA, RigidbodyComponent bodyB)

Parameters

bodyA RigidbodyComponent
bodyB RigidbodyComponent

Returns

Constraint

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