Physics Attachment Engine – Update
This update brings major workflow improvements, more control over attachment behavior, and full trigger-friendly management of multiple attachments.
✔ New Features & Fixes
1. Position-Only Tracking
You can now choose to follow
position only while keeping the rotation completely free.
- Added toggle: “Position Only (No Rotation)”
- When enabled:
- Only position is synced
- Angular motion is set to Free
- Perfect for natural hands-to-body or object interactions
- When disabled:
- Full position + rotation tracking (default)
2. Rotation Handling Fixed
Rotation is no longer applied when using position-only mode.
- Proper angularX/Y/Z motion configuration
- Cleaner, more predictable attachment behavior
3. Global Enable/Disable Toggle
Introducing the new workflow toggle:
“Enable All Attachments”
- OFF: All joints are removed, but your attachment list is preserved
- ON: All joints are automatically recreated from saved configurations
- No more losing your controller pairs
- Ideal for animations, timelines, triggers, and scene automation
4. New Internal Methods
To support the improved behavior:
- DestroyJoint() – Removes the joint while keeping the attachment data
- RecreateJoint() – Rebuilds the joint using stored rigidbody references
- Smooth fade-in when attachments are restored
✔ Trigger Support
Full integration for LogicBricks, Timeline, and other trigger systems:
- Attach (per-attachment)
- Detach All
- AttachmentsEnabled (bool) — perfect for toggling groups on/off
✔ Usage Examples
Position-Only Tracking
- Enable Position Only (No Rotation)
- Click Attach
- Source should follow the target’s movement while keeping its own rotation
Non-Destructive Toggle
- Create multiple attachments
- Toggle Enable All Attachments OFF → detaches safely
- Toggle ON → everything is restored instantly