VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
PressurePlate2D Class Reference

2‑D pressure‑plate controller. More...

Inheritance diagram for PressurePlate2D:
Collaboration diagram for PressurePlate2D:

Data Fields

UnityEvent onPressed
UnityEvent onReleased

Detailed Description

2‑D pressure‑plate controller.

Attach this to the DYNAMIC plate Rigidbody2D that is linked by a SpringJoint2D to a KINEMATIC base. The plate fires events when it sinks (compresses the spring) beyond a configurable threshold.

Field Documentation

◆ onPressed

UnityEvent PressurePlate2D.onPressed

◆ onReleased

UnityEvent PressurePlate2D.onReleased

The documentation for this class was generated from the following file: