17#ifndef AGXOSG_ROCKGENERATOR_H
18#define AGXOSG_ROCKGENERATOR_H
67 osg::Group *visualRoot,
85 osg::ref_ptr<osg::Node> m_visualRock1;
86 osg::ref_ptr<osg::Node> m_visualRock2;
87 osg::ref_ptr<osg::Node> m_visualRock3;
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
void addSphereElement(agx::RigidBody *body, osg::Group *visualRoot, const agx::Vec3 &localOffset, agx::Real elementRadius, agx::Real elementPositionJitter, agx::Real elementRadiusJitter, agx::Material *rockMaterial)
agx::RigidBody * generateRock(osg::Group *visualRoot, RockType type, agx::Real elementRadius, agx::Real elementPositionJitter, agx::Real elementRadiusJitter, agx::Real elementSpacing, agx::Material *rockMaterial)
void generateMayaRock(osg::Group *visualRoot, RockType type, agx::RigidBody *body, agx::Real elementRadius, agx::Real elementPositionJitter, agx::Material *rockMaterial)
void generateRocks(agxSDK::Assembly *root, agxCollide::Space *space, int numRocks, osg::Group *visualRoot, agx::Real emitterRadius, agx::Real elementRadius, agx::Material *rockMaterial, agx::Real emitVelocityMagnitude=0.0, agx::Real elementPositionJitter=0.5, agx::Real elementRadiusJitter=0.5, agx::Real elementSpacing=0.0)
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
Main material class which acts as a holder of a Surface Material and a Bulk material.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
agx::ref_ptr< RockGenerator > RockGeneratorRef
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.