Image Component Library (ICL)
Namespaces | Functions
PhysicsUtils.h File Reference
#include <ICLGeom/Geom.h>

Go to the source code of this file.

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::geom
 
 icl::physics
 

Functions

void ICLPhysics_API icl::physics::remove_fallen_objects (geom::Scene *scene, PhysicsWorld *world, float minZ=-2000)
 removes all rigid object from the given scene and world that are below minZ More...
 
void ICLPhysics_API icl::physics::add_clutter (geom::Scene *scene, PhysicsWorld *world, int num=30)
 adds num random objects More...
 
void ICLPhysics_API icl::physics::calcDistance (PhysicsObject *a, PhysicsObject *b, geom::Vec &pointOnA, geom::Vec &pointOnB, float &distance)
 Calculates the distance between the 2 closest points of the objects a and b. More...
 
void ICLPhysics_API icl::physics::calcDistance (PhysicsObject *a, PhysicsObject *b, geom::Mat transA, geom::Mat transB, geom::Vec &pointOnA, geom::Vec &pointOnB, float &distance)
 Calculates the distance between the 2 closest points of the objects a and b. More...
 
void ICLPhysics_API icl::physics::createObjectsFromBlobs (const std::vector< std::vector< int > > &indices, const std::vector< geom::Vec > &vertices, std::vector< PhysicsObject * > &objects)
 Creates primitives from blobs. The last blob is assumed to be the Table the objects rest on. More...