Skip to content

PhysicsConstraintMotor

Narta Xaymar Dirks edited this page Nov 17, 2026 · 1 revision
BlitzLLVM

PhysicsConstraintMotor 〔BlitzLLVM〕

PhysicsConstraintMotor:Void constraint:Int32, mode:Int32, target:Float32, max_force:Float32
Parameter Mode Type Default Description
constraint In Int32 required A hinge or slider constraint.
mode In Int32 required 0 off, 1 speed, 2 position.
target In Float32 required The speed or position to reach.
max_force In Float32 required The largest torque or force the motor may use, 0 or more.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Drives a hinge or a slider. Mode 0 turns the motor off, mode 1 drives to a speed (degrees per second, world units per second), mode 2 drives to a position (degrees, world units). The motor never pushes harder than max_force (torque for a hinge, force for a slider), so a weak motor can be stopped by a load.

Differences

  • The original has no such command. This is an extension; programs that use it do not compile with the original Blitz3D.

Related Commands

PhysicsAngularDamping 〔BlitzLLVM〕, PhysicsAngularVelocity 〔BlitzLLVM〕, PhysicsApplyAngularImpulse 〔BlitzLLVM〕, PhysicsApplyForce 〔BlitzLLVM〕, PhysicsApplyForceAt 〔BlitzLLVM〕, PhysicsConstraintBreakForce 〔BlitzLLVM〕, PhysicsConstraintLimits 〔BlitzLLVM〕, PhysicsConstraintSpring 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally