Table of Contents

Class ConeTwistConstraint

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
public class ConeTwistConstraint : Constraint, IDisposable, IRelative
Inheritance
ConeTwistConstraint
Implements
Inherited Members
Extension Methods

Properties

FixThresh

Gets or sets the fix thresh.

public float FixThresh { get; set; }

Property Value

float

The fix thresh.

IsPastSwingLimit

Gets a value indicating whether this instance is past swing limit.

public bool IsPastSwingLimit { get; }

Property Value

bool

true if this instance is past swing limit; otherwise, false.

SolveSwingLimit

Gets the solve swing limit.

public int SolveSwingLimit { get; }

Property Value

int

The solve swing limit.

SolveTwistLimit

Gets the solve twist limit.

public int SolveTwistLimit { get; }

Property Value

int

The solve twist limit.

SwingSpan1

Gets the swing span1.

public float SwingSpan1 { get; }

Property Value

float

The swing span1.

SwingSpan2

Gets the swing span2.

public float SwingSpan2 { get; }

Property Value

float

The swing span2.

TwistAngle

Gets the twist angle.

public float TwistAngle { get; }

Property Value

float

The twist angle.

TwistLimitSign

Gets the twist limit sign.

public float TwistLimitSign { get; }

Property Value

float

The twist limit sign.

TwistSpan

Gets the twist span.

public float TwistSpan { get; }

Property Value

float

The twist span.

Methods

EnableMotor(bool)

Enables the motor.

public void EnableMotor(bool b)

Parameters

b bool

if set to true [b].

SetAngularOnly(bool)

Sets the angular only.

public void SetAngularOnly(bool angularOnly)

Parameters

angularOnly bool

if set to true [angular only].

SetDamping(float)

Sets the damping.

public void SetDamping(float damping)

Parameters

damping float

The damping.

SetFrames(Matrix, Matrix)

Sets the frames.

public void SetFrames(Matrix frameA, Matrix frameB)

Parameters

frameA Matrix

The frame a.

frameB Matrix

The frame b.

SetLimit(float, float, float)

Sets the limit.

public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan)

Parameters

swingSpan1 float

The swing span1.

swingSpan2 float

The swing span2.

twistSpan float

The twist span.

SetLimit(float, float, float, float, float)

Sets the limit.

public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor)

Parameters

swingSpan1 float

The swing span1.

swingSpan2 float

The swing span2.

twistSpan float

The twist span.

softness float

The softness.

biasFactor float

The bias factor.

SetLimit(float, float, float, float, float, float)

Sets the limit.

public void SetLimit(float swingSpan1, float swingSpan2, float twistSpan, float softness, float biasFactor, float relaxationFactor)

Parameters

swingSpan1 float

The swing span1.

swingSpan2 float

The swing span2.

twistSpan float

The twist span.

softness float

The softness.

biasFactor float

The bias factor.

relaxationFactor float

The relaxation factor.

SetMaxMotorImpulse(float)

Sets the maximum motor impulse.

public void SetMaxMotorImpulse(float maxMotorImpulse)

Parameters

maxMotorImpulse float

The maximum motor impulse.

SetMaxMotorImpulseNormalized(float)

Sets the maximum motor impulse normalized.

public void SetMaxMotorImpulseNormalized(float maxMotorImpulse)

Parameters

maxMotorImpulse float

The maximum motor impulse.

SetMotorTarget(Quaternion)

Sets the motor target.

public void SetMotorTarget(Quaternion q)

Parameters

q Quaternion

The q.

SetMotorTargetInConstraintSpace(Quaternion)

Sets the motor target in constraint space.

public void SetMotorTargetInConstraintSpace(Quaternion q)

Parameters

q Quaternion

The q.