We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46be910 commit 10762d9Copy full SHA for 10762d9
Assets/Scripts/SlidingGateController.cs
@@ -9,10 +9,10 @@ private void OnTriggerEnter2D(Collider2D collision)
9
if (collision.CompareTag("Ball")) // Ensure the ball is tagged correctly
10
{
11
Debug.Log("Switch Activated!");
12
-
+
13
JointMotor2D motor = new JointMotor2D
14
15
- motorSpeed = -5f,
+ motorSpeed = -5f,
16
maxMotorTorque = 1000f
17
};
18
gateJoint.motor = motor;
0 commit comments