Difference between revisions of "HPL3/SOMA/Scripting/iPhysicsWorld"

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting
Jump to navigation Jump to search
(Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Fields== iPhysicsWorld has no public fields. ==Fu...")
 
 
Line 138: Line 138:
 
| <syntaxhighlight lang="c++" inline>void</syntaxhighlight> || SetWorldSize || [[../cVector3f|<syntaxhighlight lang="c++" inline>const cVector3f& avMin</syntaxhighlight>]],<br />[[../cVector3f|<syntaxhighlight lang="c++" inline>const cVector3f& avMax</syntaxhighlight>]] ||
 
| <syntaxhighlight lang="c++" inline>void</syntaxhighlight> || SetWorldSize || [[../cVector3f|<syntaxhighlight lang="c++" inline>const cVector3f& avMin</syntaxhighlight>]],<br />[[../cVector3f|<syntaxhighlight lang="c++" inline>const cVector3f& avMax</syntaxhighlight>]] ||
 
|}
 
|}
 +
 +
{{ReferencesSection}}
  
 
{{HPL3SOMAScriptingCategories}}
 
{{HPL3SOMAScriptingCategories}}
 
__FORCETOC__
 
__FORCETOC__

Latest revision as of 16:05, 6 August 2020

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

Fields

iPhysicsWorld has no public fields.

Functions

Return Type Function Name Parameters Description
float CastRayOnShape iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
const cVector3f& avOrigin,
const cVector3f &in avEnd,
cVector3f &out avOutNormal,
bool abLocalRayPositions
bool CheckShapeCollision iCollideShape@ apShapeA,
const cMatrixf &in a_mtxA,
iCollideShape@ apShapeB,
const cMatrixf &in a_mtxB,
cCollideData& aCollideData,
int alMaxPoints,
bool abCorrectNormalDirection,
int alThreadID = 0
bool CheckShapeWorldCollision cVector3f &out avPushVector,
iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iPhysicsBody@ apSkipBody,
bool abSkipStatic,
bool abIsCharacter,
bool abCollideCharacter
bool CheckShapeWorldCollision cVector3f &out avPushVector,
iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iPhysicsBody@ apSkipBody,
bool abSkipStatic
iPhysicsBody@ CreateBody const tString& asName,
iCollideShape@ apShape,
float afMass
tID CreateBodyID const tString& asName,
iCollideShape@ apShape,
float afMass
iCollideShape@ CreateBoxShape const cVector3f& avSize,
cMatrixf &in a_mtxOffsetMtx
iCollideShape@ CreateCapsuleShape float afRadius,
float afHeight,
cMatrixf &in a_mtxOffsetMtx
iCharacterBody@ CreateCharacterBody const tString& asName,
const cVector3f& avSize
tID CreateCharacterBodyID const tString& asName,
const cVector3f& avSize
iPhysicsCloth@ CreateCloth const tString& asName,
const cVector3f& avStartPos,
const cVector2f& avClothSize,
int alDimension
iCollideShape@ CreateCompundShape
iPhysicsController@ CreateController const tString& asName
iCollideShape@ CreateCylinderShape float afRadius,
float afHeight,
cMatrixf &in a_mtxOffsetMtx
iPhysicsJointBall@ CreateJointBall const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
tID CreateJointBallID const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
iPhysicsJointHinge@ CreateJointHinge const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
tID CreateJointHingeID const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
iPhysicsJointSlider@ CreateJointSlider const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
tID CreateJointSliderID const tString& asName,
const cVector3f &in avPivotPoint,
const cVector3f &in avPinDir,
iPhysicsBody@ apParentBody,
iPhysicsBody@ apChildBody
iPhysicsMaterial@ CreateMaterial const tString& asName
iCollideShape@ CreateMeshShape iVertexBuffer@ apVtxBuffer
iPhysicsRope@ CreateRope const tString& asName,
const cVector3f& avStartPos,
const cVector3f& avEndPos
iCollideShape@ CreateSphereShape const cVector3f& avRadii,
cMatrixf &in a_mtxOffsetMtx
void DestroyBody iPhysicsBody@ apBody
void DestroyCharacterBody iCharacterBody@ apBody
void DestroyCloth iPhysicsCloth@ apCloth
void DestroyController iPhysicsController@ apController
void DestroyJoint iPhysicsJoint@ apJoint
void DestroyRope iPhysicsRope@ apRope
void DestroyShape iCollideShape@ apShape
void EnableBodiesInAABB const cVector3f &in avMin,
const cVector3f &in avMax,
bool abEnabled
void FadeoutAllLoopSounds float afFadeSpeed
ePhysicsAccuracy GetAccuracyLevel
void GetBodiesInAABB const cVector3f &in avMin,
const cVector3f &in avMax
iPhysicsBody@ GetBody const tString& asName
iPhysicsBody@ GetCharacterBody const tString& asName
iCharacterBody@ GetCharacterBodyFromID tID aID
iPhysicsCloth@ GetCloth const tString& asName
iPhysicsCloth@ GetClothFromUniqueID int alID
cVector3f GetGravity
iPhysicsJoint@ GetJoint const tString& asName
iPhysicsMaterial@ GetMaterialFromId int alId
iPhysicsMaterial@ GetMaterialFromName const tString& asName
float GetMaxTimeStep
int GetNumberOfThreads
iPhysicsBody@ GetPhysicsBodyFromID tID aID
iPhysicsJoint@ GetPhysicsJointFromID tID aID
iPhysicsRope@ GetRope const tString& asName
iPhysicsRope@ GetRopeFromUniqueID int alID
cVector3f GetWorldSizeMax
cVector3f GetWorldSizeMin
bool JointExists iPhysicsJoint@ apJoint
iCollideShape@ LoadMeshShapeFromBuffer cBinaryBuffer@ apBuffer
void PostUpdate float afTimeStep
void RenderDebugGeometry iLowLevelGraphics@ apLowLevel
void RenderShapeDebugGeometry iCollideShape@ apShape,
const cMatrixf &in a_mtxTransform,
iLowLevelGraphics@ apLowLevel,
const cColor &in aColor
void SaveMeshShapeToBuffer iCollideShape@ apMeshShape,
cBinaryBuffer@ apBuffer
void SetAccuracyLevel ePhysicsAccuracy aAccuracy
void SetGravity const cVector3f &in avGravity
void SetMaxTimeStep float afTimeStep
void SetNumberOfThreads int alThreads
void SetWorldSize const cVector3f& avMin,
const cVector3f& avMax

References

See all references...