Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBindPhysics::RegisterExplosionShape Method
Syntax
C++
int RegisterExplosionShape(IFunctionHandler* pH, const char* sGeometryFile, float fSize, int nIdMaterial, float fProbability, const char* sSplintersFile, float fSplintersOffset, const char* sSplintersCloudEffect);
Parameters 
Description 
const char* sGeometryFile 
Static geometry file name (CGF). 
float fSize 
Scale for the static geometry. 
float fProbability 
Preference ratio of using this shape then other registered shape. 
const char* sSplintersFile 
additional non-physicalized splinters cgf to place on cut surfaces. 
float fSplintersOffset 
the lower splinters piece wrt to the upper one. 
const char* sSplintersCloudEffect 
particle effect when the splinters constraint breaks. 
nMaterialId 
ID of the breakable material to apply this shape on. 

!

Physics.RegisterExplosionShape( sGeometryFile, fSize, nMaterialId, fProbability, sSplintersFile, fSplintersOffset, sSplintersCloudEffect )

! ! Register a new explosion shape from the static geometry. ! Does not apply any game related explosion damages, this function only apply physical forces. ! !  

!  

!  

!  

!  

!  

!  

 

Copyright (c) 2012. All rights reserved.