Back to Physics PlugITs content page

"Physic hinge" PlugIT

This PlugIT allows to create an hinge physical constraint on a specific axis.

 

Parameters

1

Name of the physical object which the constraint will be applied.

2

Name of the parent object which the constraint will be applied. If there is no object, then the world will be used as a reference for the constraint.

3

Enables/Disables the collision between the two objects.

4

Defines a method to define the constraint position. Depending on the child, the parent or a customized object.

5

If the position is on a custom mode, then you can set the position from a scene object.

6

X position of the constraint.

7

Y position of the constraint.

8

Z position of the constraint.


 

Parameters

9

Constraint direction on the X axis.

10

Constraint direction on the Y axis.

11

Constraint direction on the Z axis.

12

If checked, the constraint will use an angle limit on the rotation axis. la contrainte utilisera une limite d'angle sur l'axe de rotation.

13

Minimal angle rotation.

14

Maximal angle rotation.

15

Defines the necessary force on the constraint in order to break it. If the force is defined at 0.0 then the constraint can not be broken.

16

If checked, then the constraint will be used as a motor.

17

Rotation force applied on the moteur if enabled.

18

Enables the PlugIT when the application starts.


 

Action

Enable

Enables the constraint.

Disable

Disables the constraint.

Set angle

Forces the constraint to go to a defined and a fixed angle and then to enable the motor. The degree angle value is in the link parameter.

Set break force

Sets the necessary force to break the constraint, the force value is in the link parameter.

Set limits

Sets the maximum and minimum rotation angles of the constraint, both angles are in the link parameters.

Set torque

Applies a rotation force to the constraint, the force value is in the link parameter.

Set motor

Enables the motor and changes its rotation speed, the angle is set in degree per second in the link parameter.

Brake

Applies a brake force to the motor. The force value is in the link parameter, 0 means a brake at 100%.

Release brake

Disables the brake force if enabled.

Stop motor

Disables the motor constraint if enabled.

 

Events

Angle

Sends the angle of the constraint.

Force

Sends the applied force over the constraint.

Broken

This event is sent when the constraint breaks.

In max limit

Triggered when the constraint returns under the maximum angle limit.

In min limit

Triggered when the constraint returns under the minimum angle limit.

Omega

Sends the angular velocity of the constraint.

Out limits

Triggered when the constraint goes outside the angle limits.