Kraken Logo

Kraken Engine

DocumentationGuidesShowcaseCommunity
Ctrl
K
Navigating the Docs
Building Docs
Overview
Anchor
AnimationController
Audio
Batcher
Body
Camera
Capsule
CastHit
CharacterBody
Circle
Collision
Color
DistanceJoint
Effect
Event
FilterJoint
Flip (Texture)
Font
ImageLayer
InputAction
Joint
Layer
Line
Map
MapObject
Mask
MotorJoint
MouseJoint
ObjectGroup
Orchestrator
PixelArray
PolarCoordinate
Polygon
PrismaticJoint
Rect
RevoluteJoint
RigidBody
Sample
Sampler
Shader
SheetStrip
StaticBody
Stream
Style
Terrain (TileSet)
Text
TextProperties
Texture
Tile (TileLayer)
Tile (TileSet)
TileLayer
TileResult (TileLayer)
TileSet
Timer
Transform
Tween
Vec2
Vertex
WeldJoint
WheelJoint
World

Built bydurkisneer1.Kraken Engine is open source and available onGitHub.

  1. Docs
  2. Classes
  3. Revolute Joint

RevoluteJoint

A joint that allows two bodies to rotate around a shared anchor point. Access via the 'physics' submodule.

Experimental API:

The physics submodule is an experimental and new API that is highly susceptible to breaking changes in the future.

Inherits from Joint.

Properties


NameDescriptionType
spring_enabledWhether the spring is enabled.bool
spring_hzThe spring frequency in Hertz.float
spring_damping_ratioThe spring damping ratio.float
target_angleThe target angle for the motor in radians.float
limit_enabledWhether the angle limits are enabled.bool
motor_enabledWhether the motor is enabled.bool
motor_speedThe target motor speed in radians per second.float
max_motor_torqueThe maximum motor torque.float
lower_limitThe lower angle limit in radians.float
upper_limitThe upper angle limit in radians.float
angleThe current joint angle in radians.float
motor_torqueThe current motor torque.float

Methods


Set Limits

set_limits(lower: float, upper: float) → Noneset_limits(lower: float, upper: float) → None

Set the angle limits.

Args

  • lower : The lower angle limit in radians.
  • upper : The upper angle limit in radians.
PreviousRect
NextRigidBody

On this page

PropertiesMethodsSet Limits