Physics and Kinematics Reference
Components involving advanced physics, joints, and Inverse Kinematics (IK).
Hook
Physics-based grabbing system using Fixed Joints.
void MovePosition(Vector3 pos) / MoveRotation(Vector3 rot)
- Description: Moves or rotates the component using physics.
bool RayCollision(Vector3 origin, Vector3 position, float distance)
- Description: Performs a Raycast and returns
trueif it hits a component.
void Connect(WorkPartLogic wp) / void Disconnect()
- Description: Creates or breaks a Fixed Joint between the hook and a WorkPart.
void Pick(bool value) / bool Detection()
- Description: If
trueand detection is active, it hooks the WorkPart.
Cable
Visual and logic connection between two points.
void UpdatePosEnd1(Vector3 p) / UpdatePosEnd2(Vector3 p)
- Description: Updates end positions in real-time.
- Note:
ComponentConnectproperty must be empty for manual updates.
Inverse Kinematics (IK)
Generic and Robot-specific IK solvers.
void IKEnable(bool v)
- Description: Activates or deactivates the IK solver.
void SetTarget(Vector3 pos) / SetTarget(string comp)
- Description: Defines the target goal for the solver using coordinates or a component name.
void GoRoute(string name) / bool RouteFinished
- Description: Executes a pre-configured route and returns completion status.