Kinemium Docs

HingeConstraint

Creates a hinge joint that allows rotation around one axis, like a door or wheel.

Properties

PropertyTypeDefault
Attachment0anynil
Attachment1anynil
Enabledbooleantrue
Visiblebooleantrue
ColoranyColor3.fromRGB(255, 255, 0)
ActuatorTypeEnumItemEnum.ActuatorType.None
AngularVelocitynumber2
MotorMaxAccelerationnumber100
MotorMaxTorquenumber10000
ServoMaxTorquenumber10000
TargetAnglenumber0
LimitsEnabledbooleanfalse
LowerAnglenumber-45
UpperAnglenumber45
Restitutionnumber0
OffsetCFrameCFrame.new(0, 0, 0)

Functions


cleanup

Arguments

This function takes no arguments.

Returns

This function returns nothing.

rebuild

Arguments

This function takes no arguments.

Returns

This function returns nothing.

onPartChanged

On part changed.

Arguments

property: number

Returns

This function returns nothing.

instance:UpdateActuator

Updates actuator.

Arguments

This function takes no arguments.

Returns

This function returns nothing.

instance:UpdateLimits

Updates limits.

Arguments

This function takes no arguments.

Returns

This function returns nothing.

drawGizmo

Draws the visual representation.

Arguments

This function takes no arguments.

Returns

This function returns nothing.

toRaylibColor

To raylib color.

Arguments

c: any, a: number

Returns

This function returns nothing.

API

instance:cleanup()
instance:rebuild()
instance:onPartChanged(property: number)
instance:UpdateActuator()
instance:UpdateLimits()
instance:drawGizmo()
instance:toRaylibColor(c: any, a: number)

On this page