Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


JointMotor2D

Parameters for the optional motor force applied to a Joint2D.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public struct JointMotor2D

Remarks

Additional Resources: HingeJoint2D, SliderJoint2D

Properties

Property

Description

maxMotorTorqueThe maximum force that can be applied to the Rigidbody2D at the joint to attain the target speed.
motorSpeedThe desired speed for the Rigidbody2D to reach as it moves with the joint.