HolyLib Wiki

physcollide

physcollide

Methods

CPhysCollide physcollide.BBoxToCollide( vector mins, vector max )
Creates a CPhysCollide from the given mins & maxs.
CPhysConvex physcollide.BBoxToConvex( vector mins, vector max )
Creates a CPhysConvex from the given mins & maxs.
Vector, Vector physcollide.CollideGetAABB( CPhysCollide collide, Vector origin, Angle rotation )
Returns the AABB of the given CPhysCollide
Vector physcollide.CollideGetExtent( CPhysCollide collide, Vector origin, Angle rotation, Vector direction )
Get the support map for a collide in the given direction.
Vector physcollide.CollideGetMassCenter( CPhysCollide collide )
Gets the mass center of the CPhysCollide.
get the approximate cross-sectional area projected orthographically on the bbox of the collide These are fractional areas - unitless. Basically this is the fraction of the OBB on each axis that would be visible if the object were rendered orthographically. This has been precomputed when the collide was built or this function will return 1,1,1
number physcollide.CollideIndex( CPhysCollide collide )
Returns the index of the physics model.
physcollide.CollideSetMassCenter( CPhysCollide collide, Vector massCenter )
Sets the new mass center of the CPhysCollide.
physcollide.CollideSetOrthographicAreas( CPhysCollide collide, Vector area )
I have no Idea.... RaphaelIT7 doing gods work - Mr. Saxobeat
number physcollide.CollideSize( CPhysCollide collide )
Returns the memory size of the CPhysCollide.
number physcollide.CollideSurfaceArea( CPhysCollide collide )
Computes the surface area of the CPhysCollide.
number physcollide.CollideVolume( CPhysCollide collide )
Computes the volume of the CPhysCollide.
string physcollide.CollideWrite( CPhysCollide collide, bool swap )
Serializes the CPhysCollide and returns the data containing it.
Converts the given convex to a CPhysCollide and deletes it.
Converts the given polysoup to a CPhysCollide and deletes it.
physcollide.ConvexFree( CPhysConvex convex )
Frees the given CPhysConvex if it wan't used/converted.
number physcollide.ConvexSurfaceArea( CPhysConvex convex )
Computes the surface area of the convex.
number physcollide.ConvexVolume( CPhysConvex convex )
Computes the volume of the CPhysCollide.
Creates a ICollisionQuery from the given CPhysCollide.
physcollide.DestroyCollide( CPhysCollide collide )
Destroys the given CPhysCollide.
Destroys the given ICollisionQuery.
number physcollide.objectparams_t( CPhysCollide collide )
Computes the volume of the CPhysCollide.
physcollide.PolysoupAddTriangle( CPhysPolySoup soup, vector a, vector b, vector c, number materialIndex )
Adds a triangle to the polysoup.
Creates a CPhysPolySoup.
physcollide.PolysoupDestroy( CPhysPolySoup soup )
Frees the given CPhysPolySoup if it wasn't used/converted.
Frees the given CPhysPolySoup if it wasn't used/converted.
CPhysCollide physcollide.UnserializeCollide( string data, number index )
Unserializes the given data into a CPhysCollide.