Physics Fixed Joint
Updated
Welds the bodies in a group together.
- Type
comp-physics-fixed-joint- Script class
PhysicsFixedJointComponent- Per entity
- One
- Version
- 1.0.0
Read about it in Joints: what it does, how to use it from a script, and examples.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Break a weld on impactA statue of three parts welded by a Fixed Joint stands as one object until a falling wrecking ball hits it faster than 6 m/s: the script then disables the joint and the parts fall apart.
Watch the ball drop onto the statue and break the weld. Press Relaunch to see it again. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(PhysicsFixedJointComponent); if (component) log(component.props);}