bt.DynamicsWorld¶
- class bt.DynamicsWorld¶
- Represents:
c++ class
- Wraps:
btDynamicsWorld
- Bases:
Methods:
- :stepSimulation(bt.Scalar timeStep, int maxSubSteps, bt.Scalar fixedTimeStep)¶
- :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)¶
-
- Параметры:
constraint (
bt.TypedConstraint) –disableCollisionsBetweenLinkedBodies (
bool) –
- :addConstraint(bt.TypedConstraint constraint)
-
- Параметры:
constraint (
bt.TypedConstraint) –
- :removeConstraint(bt.TypedConstraint constraint)¶
-
- Параметры:
constraint (
bt.TypedConstraint) –
- :setGravity(bt.Vector3 gravity)¶
-
- Параметры:
gravity (
bt.Vector3) –
- :getGravity()¶
-
- Тип результата:
- :synchronizeMotionStates()¶
- :addRigidBody(bt.RigidBody body)¶
-
- Параметры:
body (
bt.RigidBody) –
- :addRigidBody(bt.RigidBody body, int group, int mask)
-
- Параметры:
body (
bt.RigidBody) –group (
int) –mask (
int) –
- :removeRigidBody(bt.RigidBody body)¶
-
- Параметры:
body (
bt.RigidBody) –
- :setConstraintSolver(bt.ConstraintSolver solver)¶
-
- Параметры:
solver (
bt.ConstraintSolver) –
- :getConstraintSolver()¶
-
- Тип результата:
- :getNumConstraints()¶
-
- Тип результата:
int
- :getConstraint(int index)¶
-
- Параметры:
index (
int) –- Тип результата:
- :clearForces()¶