HPL3/Amnesia: Rebirth/Scripting/iPhysicsWorld
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 CastRayOnShape
- 3.2 CheckShapeCollision
- 3.3 CheckShapeWorldCollision
- 3.4 CheckShapeWorldCollision
- 3.5 CreateBody
- 3.6 CreateBodyID
- 3.7 CreateBoxShape
- 3.8 CreateCapsuleShape
- 3.9 CreateCharacterBody
- 3.10 CreateCharacterBodyID
- 3.11 CreateCloth
- 3.12 CreateCompundShape
- 3.13 CreateController
- 3.14 CreateCylinderShape
- 3.15 CreateJointBall
- 3.16 CreateJointBallID
- 3.17 CreateJointHinge
- 3.18 CreateJointHingeID
- 3.19 CreateJointSlider
- 3.20 CreateJointSliderID
- 3.21 CreateMaterial
- 3.22 CreateMeshShape
- 3.23 CreateRope
- 3.24 CreateSphereShape
- 3.25 DestroyBody
- 3.26 DestroyCharacterBody
- 3.27 DestroyCloth
- 3.28 DestroyController
- 3.29 DestroyJoint
- 3.30 DestroyRope
- 3.31 DestroyShape
- 3.32 EnableBodiesInAABB
- 3.33 FadeoutAllLoopSounds
- 3.34 GetAccuracyLevel
- 3.35 GetBodiesInAABB
- 3.36 GetBody
- 3.37 GetCharacterBody
- 3.38 GetCharacterBodyFromID
- 3.39 GetCloth
- 3.40 GetClothFromUniqueID
- 3.41 GetGravity
- 3.42 GetJoint
- 3.43 GetMaterialFromId
- 3.44 GetMaterialFromName
- 3.45 GetMaxTimeStep
- 3.46 GetNumberOfThreads
- 3.47 GetPhysicsBodyFromID
- 3.48 GetPhysicsJointFromID
- 3.49 GetRope
- 3.50 GetRopeFromUniqueID
- 3.51 GetWorldSizeMax
- 3.52 GetWorldSizeMin
- 3.53 JointExists
- 3.54 LoadMeshShapeFromBuffer
- 3.55 PostUpdate
- 3.56 RenderDebugGeometry
- 3.57 RenderShapeDebugGeometry
- 3.58 SaveMeshShapeToBuffer
- 3.59 SetAccuracyLevel
- 3.60 SetGravity
- 3.61 SetMaxTimeStep
- 3.62 SetNumberOfThreads
- 3.63 SetWorldSize
- 4 References
Fields
iPhysicsWorld has no public fields.
Functions
Details
CastRayOnShape
float CastRayOnShape(iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
const cVector3f &in avOrigin,
const cVector3f &in avEnd,
cVector3f &out avOutNormal,
bool abLocalRayPositions)
Parameters
- apShape (iCollideShape@) —
- a_mtxTransform (cMatrixf) —
- avOrigin (cVector3f) —
- avEnd (cVector3f) —
- avOutNormal (cVector3f) —
- abLocalRayPositions (bool) —
Returns:
- float—
CheckShapeCollision
bool CheckShapeCollision(iCollideShape@ apShapeA,
const cMatrixf &in a_mtxA,
iCollideShape@ apShapeB,
const cMatrixf &in a_mtxB,
cCollideData &inout aCollideData,
int alMaxPoints,
bool abCorrectNormalDirection,
int alThreadID = 0)
Parameters
- apShapeA (iCollideShape@) —
- a_mtxA (cMatrixf) —
- apShapeB (iCollideShape@) —
- a_mtxB (cMatrixf) —
- aCollideData (cCollideData) —
- alMaxPoints (int) —
- abCorrectNormalDirection (bool) —
- alThreadID (int) —
Returns:
- bool—
CheckShapeWorldCollision
bool CheckShapeWorldCollision(cVector3f &out avPushVector,
iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iPhysicsBody@ apSkipBody,
bool abSkipStatic,
bool abIsCharacter,
bool abCollideCharacter)
Parameters
- avPushVector (cVector3f) —
- apShape (iCollideShape@) —
- a_mtxTransform (cMatrixf) —
- apSkipBody (iPhysicsBody@) —
- abSkipStatic (bool) —
- abIsCharacter (bool) —
- abCollideCharacter (bool) —
Returns:
- bool—
CheckShapeWorldCollision
bool CheckShapeWorldCollision(cVector3f &out avPushVector,
iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iPhysicsBody@ apSkipBody,
bool abSkipStatic)
Parameters
- avPushVector (cVector3f) —
- apShape (iCollideShape@) —
- a_mtxTransform (cMatrixf) —
- apSkipBody (iPhysicsBody@) —
- abSkipStatic (bool) —
Returns:
- bool—
CreateBody
iPhysicsBody@ CreateBody(const tString &in asName,
iCollideShape@ apShape,
float afMass)
Parameters
- asName (tString) —
- apShape (iCollideShape@) —
- afMass (float) —
Returns:
- iPhysicsBody@—
CreateBodyID
tID CreateBodyID(const tString &in asName,
iCollideShape@ apShape,
float afMass)
Parameters
- asName (tString) —
- apShape (iCollideShape@) —
- afMass (float) —
Returns:
- tID—
CreateBoxShape
CreateCapsuleShape
iCollideShape@ CreateCapsuleShape(float afRadius,
float afHeight,
cMatrixf &in a_mtxOffsetMtx)
Parameters
- afRadius (float) —
- afHeight (float) —
- a_mtxOffsetMtx (cMatrixf) —
Returns:
- iCollideShape@—
CreateCharacterBody
CreateCharacterBodyID
CreateCloth
CreateCompundShape
iCollideShape@ CreateCompundShape(iCollideShape@ avShapes)
Parameters
- avShapes (iCollideShape@) —
Returns:
- iCollideShape@—
CreateController
iPhysicsController@ CreateController(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsController@—
CreateCylinderShape
iCollideShape@ CreateCylinderShape(float afRadius,
float afHeight,
cMatrixf &in a_mtxOffsetMtx)
Parameters
- afRadius (float) —
- afHeight (float) —
- a_mtxOffsetMtx (cMatrixf) —
Returns:
- iCollideShape@—
CreateJointBall
iPhysicsJointBall@ CreateJointBall(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- iPhysicsJointBall@—
CreateJointBallID
tID CreateJointBallID(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- tID—
CreateJointHinge
iPhysicsJointHinge@ CreateJointHinge(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- iPhysicsJointHinge@—
CreateJointHingeID
tID CreateJointHingeID(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- tID—
CreateJointSlider
iPhysicsJointSlider@ CreateJointSlider(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- iPhysicsJointSlider@—
CreateJointSliderID
tID CreateJointSliderID(const tString &in asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody)
Parameters
- asName (tString) —
- avPivotPoint (cVector3f) —
- avPinDir (cVector3f) —
- apParentBody (iPhysicsBody@) —
- apChildBody (iPhysicsBody@) —
Returns:
- tID—
CreateMaterial
iPhysicsMaterial@ CreateMaterial(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsMaterial@—
CreateMeshShape
iCollideShape@ CreateMeshShape(iVertexBuffer@ apVtxBuffer)
Parameters
- apVtxBuffer (iVertexBuffer@) —
Returns:
- iCollideShape@—
CreateRope
CreateSphereShape
DestroyBody
DestroyCharacterBody
void DestroyCharacterBody(iCharacterBody@ apBody)
Parameters
- apBody (iCharacterBody@) —
Returns:
- void
DestroyCloth
DestroyController
void DestroyController(iPhysicsController@ apController)
Parameters
- apController (iPhysicsController@) —
Returns:
- void
DestroyJoint
DestroyRope
DestroyShape
EnableBodiesInAABB
FadeoutAllLoopSounds
void FadeoutAllLoopSounds(float afFadeSpeed)
Parameters
- afFadeSpeed (float) —
Returns:
- void
GetAccuracyLevel
ePhysicsAccuracy GetAccuracyLevel()
Returns:
- ePhysicsAccuracy—
GetBodiesInAABB
void GetBodiesInAABB(const cVector3f &in avMin,
const cVector3f &in avMax,
iPhysicsBody@ apBodyVec)
Parameters
- avMin (cVector3f) —
- avMax (cVector3f) —
- apBodyVec (iPhysicsBody@) —
Returns:
- void
GetBody
iPhysicsBody@ GetBody(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsBody@—
GetCharacterBody
iPhysicsBody@ GetCharacterBody(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsBody@—
GetCharacterBodyFromID
GetCloth
iPhysicsCloth@ GetCloth(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsCloth@—
GetClothFromUniqueID
iPhysicsCloth@ GetClothFromUniqueID(int alID)
Parameters
- alID (int) —
Returns:
- iPhysicsCloth@—
GetGravity
cVector3f GetGravity()
Returns:
- cVector3f—
GetJoint
iPhysicsJoint@ GetJoint(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsJoint@—
GetMaterialFromId
iPhysicsMaterial@ GetMaterialFromId(int alId)
Parameters
- alId (int) —
Returns:
- iPhysicsMaterial@—
GetMaterialFromName
iPhysicsMaterial@ GetMaterialFromName(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsMaterial@—
GetMaxTimeStep
float GetMaxTimeStep()
Returns:
- float—
GetNumberOfThreads
int GetNumberOfThreads()
Returns:
- int—
GetPhysicsBodyFromID
GetPhysicsJointFromID
GetRope
iPhysicsRope@ GetRope(const tString &in asName)
Parameters
- asName (tString) —
Returns:
- iPhysicsRope@—
GetRopeFromUniqueID
iPhysicsRope@ GetRopeFromUniqueID(int alID)
Parameters
- alID (int) —
Returns:
- iPhysicsRope@—
GetWorldSizeMax
cVector3f GetWorldSizeMax()
Returns:
- cVector3f—
GetWorldSizeMin
cVector3f GetWorldSizeMin()
Returns:
- cVector3f—
JointExists
LoadMeshShapeFromBuffer
iCollideShape@ LoadMeshShapeFromBuffer(cBinaryBuffer@ apBuffer)
Parameters
- apBuffer (cBinaryBuffer@) —
Returns:
- iCollideShape@—
PostUpdate
void PostUpdate(float afTimeStep)
Parameters
- afTimeStep (float) —
Returns:
- void
RenderDebugGeometry
void RenderDebugGeometry(iLowLevelGraphics@ apLowLevel)
Parameters
- apLowLevel (iLowLevelGraphics@) —
Returns:
- void
RenderShapeDebugGeometry
void RenderShapeDebugGeometry(iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iLowLevelGraphics@ apLowLevel,
const cColor &in aColor)
Parameters
- apShape (iCollideShape@) —
- a_mtxTransform (cMatrixf) —
- apLowLevel (iLowLevelGraphics@) —
- aColor (cColor) —
Returns:
- void
SaveMeshShapeToBuffer
void SaveMeshShapeToBuffer(iCollideShape@ apMeshShape,
cBinaryBuffer@ apBuffer)
Parameters
- apMeshShape (iCollideShape@) —
- apBuffer (cBinaryBuffer@) —
Returns:
- void
SetAccuracyLevel
void SetAccuracyLevel(ePhysicsAccuracy aAccuracy)
Parameters
- aAccuracy (ePhysicsAccuracy) —
Returns:
- void
SetGravity
SetMaxTimeStep
void SetMaxTimeStep(float afTimeStep)
Parameters
- afTimeStep (float) —
Returns:
- void
SetNumberOfThreads
void SetNumberOfThreads(int alThreads)
Parameters
- alThreads (int) —
Returns:
- void
SetWorldSize
References
- HPL3/Amnesia: Rebirth/Scripting/Scripting Api (← links)
- HPL3/Amnesia: Rebirth/Scripting/cLuxMap (← links)
- HPL3/Amnesia: Rebirth/Scripting/cMeshEntity (← links)
- HPL3/Amnesia: Rebirth/Scripting/cSubMesh (← links)
- HPL3/Amnesia: Rebirth/Scripting/cWorld (← links)
- HPL3/Amnesia: Rebirth/Scripting/Scripting Api/cPhysics (← links)