Additional PinSlotJoint 2D implementation with DOF: 1 translation + 1 rotation (#775)

* Additional groove joint 2D implementation with 1 translation + 1 rotation

* Conditional import for 2d feature flag

* Groove joint 2d tests in testbed examples

* Renamed GrooveJoint to PinSlotJoint

* cargo fmt

* Cross-reference to groove joint in Godot engine
This commit is contained in:
legendofa
2025-11-14 19:00:36 +09:00
committed by GitHub
parent eb62d2f5c7
commit 5f687b0d29
5 changed files with 368 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ mod joint_motor_position2;
mod joints2;
mod locked_rotations2;
mod one_way_platforms2;
mod pin_slot_joint2;
mod platform2;
mod polyline2;
mod pyramid2;
@@ -66,6 +67,7 @@ pub fn main() {
("One-way platforms", one_way_platforms2::init_world),
("Platform", platform2::init_world),
("Polyline", polyline2::init_world),
("Pin Slot Joint", pin_slot_joint2::init_world),
("Pyramid", pyramid2::init_world),
("Restitution", restitution2::init_world),
("Rope Joints", rope_joints2::init_world),