wiki.sine.space | sinespace

Scripting/SJointMotor

From wiki.sine.space
Revision as of 13:59, 15 January 2022 by Voidtech (Talk | contribs) (Created page with " =Static Public Member Functions= {{ScriptFunction|SJointMotor|New|(float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);|Creates a new SJ...")

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


Static Public Member Functions

New

SJointMotor New (float min, float max, float bounciness, float bounceMinVelocity, float contactDistance);

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

Limits = Space.Host.ExecutingObject.HingeJoint.Limits.New((1,2,3,4,5))



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.

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


Max

float Max { get;set; }

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


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


Bool

float Bool { get;set; }

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

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