|
| proto external void | SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor) |
| |
| proto external void | SetMotorTargetAngle (float angle, float dt, float maxImpulse) |
| |
| proto external void | SetMotor (bool enable, float targetVelocity, float maxImpulse) |
| |
| proto external void | SetAxis (vector axis) |
| |
| proto external void | SetLimits (float low, float high, float softness, float biasFactor, float relaxationFactor) |
| |
| proto external void | SetMotorTargetAngle (float angle, float dt, float maxImpulse) |
| |
| proto external void | SetMotor (bool enable, float targetVelocity, float maxImpulse) |
| |
| proto external void | SetAxis (vector axis) |
| |
◆ SetAxis() [1/2]
| proto external void SetAxis |
( |
vector |
axis | ) |
|
|
private |
Sets new axis of the hinge joint. ent1 refers to one in PhysicsJoint.CreateHinge.
- Parameters
-
| axis | New joint axis in reference frame of ent1 |
◆ SetAxis() [2/2]
| proto external void SetAxis |
( |
vector |
axis | ) |
|
|
private |
Sets new axis of the hinge joint. ent1 refers to one in PhysicsJoint.CreateHinge.
- Parameters
-
| axis | New joint axis in reference frame of ent1 |
◆ SetLimits() [1/2]
Sets various joint parameters
- Parameters
-
| low | Low limit of the joint |
| high | High limit of the joint |
| softness | Softness of the joint. See details |
| biasFactor | Bias factor of the joint. See details |
| relaxationFactor | Relaxation factor of the joint. See details |
◆ SetLimits() [2/2]
Sets various joint parameters
- Parameters
-
| low | Low limit of the joint |
| high | High limit of the joint |
| softness | Softness of the joint. See details |
| biasFactor | Bias factor of the joint. See details |
| relaxationFactor | Relaxation factor of the joint. See details |
◆ SetMotor() [1/2]
| proto external void SetMotor |
( |
bool |
enable, |
|
|
float |
targetVelocity, |
|
|
float |
maxImpulse |
|
) |
| |
|
private |
Allows motor to move hinge at specific velocity
- Parameters
-
| enable | True to enable motor |
| targetVelocity | Target angular velocity motor tries to maintain |
| maxImpulse | Maximum impulse motor can overcome |
◆ SetMotor() [2/2]
| proto external void SetMotor |
( |
bool |
enable, |
|
|
float |
targetVelocity, |
|
|
float |
maxImpulse |
|
) |
| |
|
private |
Allows motor to move hinge at specific velocity
- Parameters
-
| enable | True to enable motor |
| targetVelocity | Target angular velocity motor tries to maintain |
| maxImpulse | Maximum impulse motor can overcome |
◆ SetMotorTargetAngle() [1/2]
| proto external void SetMotorTargetAngle |
( |
float |
angle, |
|
|
float |
dt, |
|
|
float |
maxImpulse |
|
) |
| |
|
private |
Allows motor to move hinge to specific angle. Must be called continuously.
- Parameters
-
| angle | Target angle motor tries to reach |
| dt | Time fraction used in update |
| maxImpulse | Maximum impulse motor can overcome |
◆ SetMotorTargetAngle() [2/2]
| proto external void SetMotorTargetAngle |
( |
float |
angle, |
|
|
float |
dt, |
|
|
float |
maxImpulse |
|
) |
| |
|
private |
Allows motor to move hinge to specific angle. Must be called continuously.
- Parameters
-
| angle | Target angle motor tries to reach |
| dt | Time fraction used in update |
| maxImpulse | Maximum impulse motor can overcome |
The documentation for this class was generated from the following file: