Documentation: PhysicsJoint2MutatorComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
joint_id uint16 0 [0, 1000] Use this to create a relation between PhysicsJointMutator and a joint created by PhysicsJoint2Component. The PhysicsJoint2Mutator must exist when the physics objects are initialized for the first time.
destroy bool false if 1, the joint will break and this component will be destroyed.
motor_speed float 0 if != 0 and this is linked to a revolute joint, the joint motor will be enabled at this speed
motor_max_torque float 1 max torque for motor
mBox2DJointId uint64 0 Private, don't touch this! Stores the joint's id in the physics engine.
Privates
mPreviousMotorSpeed float 0
mPreviousMotorMaxTorque float 0