HPL3/SOMA/Scripting/Scripting Api/Joint

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Revision as of 21:54, 24 August 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Summary== {{CodeDocSummaryTop}} {{CodeDocSummaryIte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Summary

Return Type Function and Description
void Joint_Break(const tString &in asJointName)
Breaks the specified joint
float Joint_GetForceSize(const tString &in asJointName)
Gets the force magnitude applied to the specified joint
bool Joint_IsBroken(const tString &in asJointName)
Checks if the specified joint is broken
void Joint_SetBreakable(const tString &in asJointName, bool abBreakable)
Sets if the joint should be breakable by force or not

Function Detail

Joint_Break

void Joint_Break(const tString &in asJointName)

Breaks the specified joint.

Parameters

  • asJointName (tString) — name of the joint.

Returns:

  • void

Joint_GetForceSize

float Joint_GetForceSize(const tString &in asJointName)

Gets the force magnitude applied to the specified joint.

Parameters

  • asJointName (tString) — name of the joint.

Returns:

  • float—force size

Joint_IsBroken

bool Joint_IsBroken(const tString &in asJointName)

Checks if the specified joint is broken.

Parameters

  • asJointName (tString) — name of the joint.

Returns:

  • bool—true if the joint is broken.

Joint_SetBreakable

void Joint_SetBreakable(const tString &in asJointName,
                        bool abBreakable)

Sets if the joint should be breakable by force or not.

Parameters

  • asJointName (tString) — name of the joint.
  • abBreakable (bool) — true if the joint should be breakable, false if it shouldn't.

Returns:

  • void