Beispiel #1
0
        public DeformableMultiBodyDynamicsWorld(Dispatcher dispatcher, BroadphaseInterface pairCache,
                                                DeformableMultiBodyConstraintSolver constraintSolver, CollisionConfiguration collisionConfiguration,
                                                DeformableBodySolver deformableBodySolver)
        {
            _deformableBodySolver = deformableBodySolver;

            IntPtr native = btDeformableMultiBodyDynamicsWorld_new(dispatcher.Native, pairCache.Native,
                                                                   constraintSolver.Native, collisionConfiguration.Native, deformableBodySolver.Native);

            InitializeUserOwned(native);
            InitializeMembers(dispatcher, pairCache, constraintSolver);

            WorldInfo = new SoftBodyWorldInfo(btDeformableMultiBodyDynamicsWorld_getWorldInfo(Native), this)
            {
                Dispatcher = dispatcher,
                Broadphase = pairCache
            };
        }
Beispiel #2
0
 public void SetDeformableSolver(DeformableBodySolver deformableSolver)
 {
     btDeformableMultiBodyConstraintSolver_setDeformableSolver(Native, deformableSolver.Native);
 }