SoftBodySimulation (object)

An object for managing rigid body simulations.

The RigidBodySimulation object provides a tool to combine Fabric Engine systems such as Geometry and InlineDrawing with Bullet Physics.

SoftBodySimulation SoftBodySimulation SoftBodySimulation

Members

Boolean initialized  
Scalar timeStep  
UInt32 subSteps  
SoftBodyMesh[] softBodyMeshes  
SoftBodyLines[] softBodyLines  
BulletRigidBody[] rigidBodies  
BulletBroadphaseInterface broadphase  
BulletCollisionDispatcher dispatcher  
BulletConstraintSolver solver  
BulletCollisionConfiguration collisionConfiguration  
BulletDynamicsWorld dynamicsWorld  
BulletSoftSoftCollisionAlgorithm[] SoftSoftCollisionAlgorithms  
BulletSoftRigidCollisionAlgorithm[] SoftRigidCollisionAlgorithms  
BulletSoftBodyWorldInfo softBodyWorldInfo  

Methods in detail

SoftBodySimulation ( in SoftBodySimulation other )

copy constructor


SoftBodySimulation ()


BulletRigidBody SoftBodySimulation.addRigidBody! ( in Scalar mass, in Xfo xfo, in BulletCollisionShape shape )


SoftBodyMesh SoftBodySimulation.addSoftBody! ( in BulletSoftBody psb, in PolygonMesh mesh )


SoftBodyLines SoftBodySimulation.addSoftBodyLines! ( in BulletSoftBody psb, in Lines lines )


SoftBodySimulation SoftBodySimulation.clone? ()

clone method


SoftBodySimulation.createFlatGround! ( in Scalar yPosition )

Creates a large box shape to be used at the ground plane.


BulletSoftRigidDynamicsWorld SoftBodySimulation.getSoftDynamicsWorld? ()


SoftBodySimulation.initPhysics! ()

Initializes the physics simulation. register some softBody collision algorithms on top of the default BulletDefaultCollisionConfiguration Register softBody versus softBody collision algorithm


SoftBodySimulation.resetSimulation! ()

Resets the simulation, moving all the objects back to thier initial positions. create a copy of the array, not a reference! reset some internal cached data in the broadphase


SoftBodySimulation.stepSimulation? ()


~ SoftBodySimulation ()

Cleans up the simulation