Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Physics Methods

The methods of the CScriptBind_Physics class are listed here.

 
Name 
Description 
 
This is GetMemoryUsage, a member of class CScriptBind_Physics. 
 
Syntax: Physics.RayTraceCheck( Vec3 src,Vec3 dst,ScriptHandle skipEntityId1,ScriptHandle skipEntityId2 )
Check if ray segment from src to dst intersect anything. 
 
Syntax: Physics.RayWorldIntersection( Vec3 vPos,Vec3 vDir,int nMaxHits,int iEntTypes, [optional] skipEntityId1, [optional] skipEntityId2 )
Check if ray segment from src to dst intersect anything. 
 
Syntax: Physics.RegisterExplosionCrack( const char *sGeometryFile,int nIdMaterial )
Register a new crack for breakable object. 
 
Syntax: Physics.RegisterExplosionShape( const char *sGeometryFile,float fSize,int nIdMaterial,float fProbability )
Register a new explosion shape from the static geometry. Does not apply any game related explosion damages, this function only apply physical forces. 
 
Syntax: Physics.SamplePhysEnvironment( Vec3 pt, float r, int objtypes )
Find physical entities touched by a sphere 
 
Syntax: Physics.SimulateExplosion( Table explosionParams )
Simulate physical explosion. Does not apply any game related explosion damages, this function only apply physical forces. 
Copyright (c) 2012. All rights reserved.