SJointMotor

Index

Functions Index

Function Name

override string ToString ()

static SJointMotor New (float targetVelocity, float force, bool freeSpin)

Properties Index

Property Name

float Force get

bool FreeSpin get

Functions

ToString

override string ToString ()

Returns this SJointMotor's properties as a string

Parameter
Type
Description

MotorString = Space.Host.ExecutingObject.HingeJoint.Motor.ToString()

New

static SJointMotor New (float targetVelocity, float force, bool freeSpin)

Creates a new SJointMotor with the given targetVelocity, force, freeSpin.

Parameter
Type
Description

Properties

TargetVelocity

float TargetVelocityget

The motor will apply a force up to force to achieve targetVelocity.

Force

float Forceget

The motor will apply a force.

FreeSpin

bool FreeSpinget

If freeSpin is enabled the motor will only accelerate but never slow down.

Last updated

Was this helpful?