HPL3/SOMA/Scripting/Scripting Api/cPhysics

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Revision as of 21:50, 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
iPhysicsWorld cPhysics_CreateWorld(bool abAddSurfaceData)
void cPhysics_DestroyWorld(iPhysicsWorld@ apWorld)
float cPhysics_GetImpactDuration()
int cPhysics_GetMaxImpacts()
void cPhysics_SetImpactDuration(float afX)
void cPhysics_SetMaxImpacts(int alX)
iPhysicsBody cPhysics_ToBody(iEntity3D@ apEntity)
iPhysicsJointBall cPhysics_ToJointBall(iPhysicsJoint@ apJoint)
iPhysicsJointHinge cPhysics_ToJointHinge(iPhysicsJoint@ apJoint)
iPhysicsJointSlider cPhysics_ToJointSlider(iPhysicsJoint@ apJoint)

Function Detail

cPhysics_CreateWorld

iPhysicsWorld@ cPhysics_CreateWorld(bool abAddSurfaceData)


Parameters

  • abAddSurfaceData (bool) —

Returns:

  • iPhysicsWorld@

cPhysics_DestroyWorld

void cPhysics_DestroyWorld(iPhysicsWorld@ apWorld)


Parameters

Returns:

  • void

cPhysics_GetImpactDuration

float cPhysics_GetImpactDuration()

Returns:

  • float

cPhysics_GetMaxImpacts

int cPhysics_GetMaxImpacts()

Returns:

  • int

cPhysics_SetImpactDuration

void cPhysics_SetImpactDuration(float afX)


Parameters

  • afX (float) —

Returns:

  • void

cPhysics_SetMaxImpacts

void cPhysics_SetMaxImpacts(int alX)


Parameters

  • alX (int) —

Returns:

  • void

cPhysics_ToBody

iPhysicsBody@ cPhysics_ToBody(iEntity3D@ apEntity)


Parameters

Returns:

  • iPhysicsBody@

cPhysics_ToJointBall

iPhysicsJointBall@ cPhysics_ToJointBall(iPhysicsJoint@ apJoint)


Parameters

Returns:

  • iPhysicsJointBall@

cPhysics_ToJointHinge

iPhysicsJointHinge@ cPhysics_ToJointHinge(iPhysicsJoint@ apJoint)


Parameters

Returns:

  • iPhysicsJointHinge@

cPhysics_ToJointSlider

iPhysicsJointSlider@ cPhysics_ToJointSlider(iPhysicsJoint@ apJoint)


Parameters

Returns:

  • iPhysicsJointSlider@