class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeNode3DJoint3D HingeJoint3D
A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body.

A physics joint that restricts the rotation of a 3D physics body around an axis relative to another physics body. For example, Body A can be a StaticBody3D representing a door hinge that a RigidBody3D rotates around.

Enum Param<>():Enum

PARAM_BIAS = 0

The speed with which the two bodies get pulled together when they move in different directions.


PARAM_LIMIT_UPPER = 1

The maximum rotation. Only active if angular_limit/enable is true.


PARAM_LIMIT_LOWER = 2

The minimum rotation. Only active if angular_limit/enable is true.


PARAM_LIMIT_BIAS = 3

The speed with which the rotation across the axis perpendicular to the hinge gets corrected.


PARAM_LIMIT_SOFTNESS = 4

Deprecated: This property is never used by the engine and is kept for compatibility purpose.


PARAM_LIMIT_RELAXATION = 5

The lower this value, the more the rotation gets slowed down.


PARAM_MOTOR_TARGET_VELOCITY = 6

Target speed for the motor.


PARAM_MOTOR_MAX_IMPULSE = 7

Maximum acceleration for the motor.


PARAM_MAX = 8

Represents the size of the Param enum.

Enum Flag<>():Enum

FLAG_USE_LIMIT = 0

If true, the hinges maximum and minimum rotation, defined by angular_limit/lower and angular_limit/upper has effects.


FLAG_ENABLE_MOTOR = 1

When activated, a motor turns the hinge.


FLAG_MAX = 2

Represents the size of the Flag enum.

float angular_limit/bias<>():float

The speed with which the rotation across the axis perpendicular to the hinge gets corrected.

bool angular_limit/enable<>():bool

If true, the hinges maximum and minimum rotation, defined by angular_limit/lower and angular_limit/upper has effects.

float angular_limit/lower<>():float

The minimum rotation. Only active if angular_limit/enable is true.

float angular_limit/relaxation<>():float

The lower this value, the more the rotation gets slowed down.

float angular_limit/softness<>():float

Deprecated: This property is never set by the engine and is kept for compatibility purposes.

float angular_limit/upper<>():float

The maximum rotation. Only active if angular_limit/enable is true.

bool motor/enable<>():bool

When activated, a motor turns the hinge.

float motor/max_impulse<>():float

Maximum acceleration for the motor.

float motor/target_velocity<>():float

Target speed for the motor.

float params/bias<>():float

The speed with which the two bodies get pulled together when they move in different directions.

bool get_flag<>( Flag flag=, flag:Flag=, ):bool

Returns the value of the specified flag.

float get_param<>( Param param=, param:Param=, ):float

Returns the value of the specified parameter.

void set_flag<>( Flag flag=, flag:Flag=, bool enabled=, enabled:bool=, ):void

If true, enables the specified flag.

void set_param<>( Param param=, param:Param=, float value=, value:float=, ):void

Sets the value of the specified parameter.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...