wiki.sine.space | sinespace

Scripting/SJointLimits

From wiki.sine.space
Revision as of 19:46, 10 January 2022 by Voidtech (Talk | contribs) (Created page with " =Static Public Member Functions= {{ScriptFunction|static SJointLimits|New|(float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);|Creates...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Static Public Member Functions

New

static SJointLimits New (float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);

Creates a new SJoinLimits with the given min, max, bounciness, bounceMinVelocity and contactDistance.



Public Member Functions

ToString

string ToString ();

Returns this SJointLimits's properties as a string

LimitsString = Space.Host.ExecutingObject.HingeJoint.Limits.ToString()



Properties

Min

float Min { get;set; }

The lower angular limit (in degrees) of the joint.

Space.Host.ExecutingObject.HingeJoint.Limits.Min = 0


Max

float Max { get;set; }

The upper angular limit (in degrees) of the joint.


Max= Space.Host.ExecutingObject.HingeJoint.Limits.Max = 0 


Bounciness

float Bounciness { get;set; }

Determines the size of the bounce when the joint hits it's limit. Also known as restitution.

Space.Host.ExecutingObject.HingeJoint.Limits.Bounciness = 0


BounceMinVelocity

float BounceMinVelocity { get;set; }

The minimum impact velocity which will cause the joint to bounce.

 Space.Host.ExecutingObject.HingeJoint.Limits.BounceMinVelocity = 0


ContactDistance

float ContactDistance { get;set; }

Distance inside the limit value at which the limit will be considered to be active by the solver.

Space.Host.ExecutingObject.HingeJoint.Limits.ContactDistance= 0