bt.DynamicsWorld

class bt.DynamicsWorld
Represents

c++ class

Wraps

btDynamicsWorld

Bases

bt.CollisionWorld

Methods:

:stepSimulation(bt.Scalar timeStep, int maxSubSteps, bt.Scalar fixedTimeStep)

Параметры
Тип результата

int

:stepSimulation(bt.Scalar timeStep, int maxSubSteps)

Параметры
  • timeStep (bt.Scalar) –

  • maxSubSteps (int) –

Тип результата

int

:stepSimulation(bt.Scalar timeStep)

Параметры

timeStep (bt.Scalar) –

Тип результата

int

:debugDrawWorld()

:addConstraint(bt.TypedConstraint constraint, bool disableCollisionsBetweenLinkedBodies)

Параметры
:addConstraint(bt.TypedConstraint constraint)

Параметры

constraint (bt.TypedConstraint) –

:removeConstraint(bt.TypedConstraint constraint)

Параметры

constraint (bt.TypedConstraint) –

:setGravity(bt.Vector3 gravity)

Параметры

gravity (bt.Vector3) –

:getGravity()

Тип результата

bt.Vector3

:synchronizeMotionStates()

:addRigidBody(bt.RigidBody body)

Параметры

body (bt.RigidBody) –

:addRigidBody(bt.RigidBody body, int group, int mask)

Параметры
:removeRigidBody(bt.RigidBody body)

Параметры

body (bt.RigidBody) –

:setConstraintSolver(bt.ConstraintSolver solver)

Параметры

solver (bt.ConstraintSolver) –

:getConstraintSolver()

Тип результата

bt.ConstraintSolver

:getNumConstraints()

Тип результата

int

:getConstraint(int index)

Параметры

index (int) –

Тип результата

bt.TypedConstraint

:clearForces()