|
Blender V4.5
|
Rigid Body API implementation for Bullet. More...
#include <cerrno>#include <cstdio>#include "RBI_api.h"#include <btBulletDynamicsCommon.h>#include <LinearMath/btConvexHullComputer.h>#include <LinearMath/btMatrix3x3.h>#include <LinearMath/btScalar.h>#include <LinearMath/btTransform.h>#include <LinearMath/btVector3.h>#include <BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h>#include <BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h>#include <BulletCollision/Gimpact/btGImpactShape.h>Go to the source code of this file.
Classes | |
| struct | rbDynamicsWorld |
| struct | rbRigidBody |
| struct | rbVert |
| struct | rbTri |
| struct | rbMeshData |
| struct | rbCollisionShape |
| struct | rbFilterCallback |
Rigid Body API implementation for Bullet.
Definition in file rb_bullet_api.cpp.
|
inlinestatic |
Definition at line 111 of file rb_bullet_api.cpp.
References copy_quat_btquat(), and btQuaternion::getW().
Referenced by copy_quat_btquat(), and RB_body_get_orientation().
|
inlinestatic |
Definition at line 105 of file rb_bullet_api.cpp.
References btVector3, and copy_v3_btvec3().
Referenced by copy_v3_btvec3(), RB_body_get_angular_velocity(), RB_body_get_linear_velocity(), RB_body_get_position(), RB_body_get_scale(), and RB_dworld_get_gravity().
|
static |
Definition at line 935 of file rb_bullet_api.cpp.
References btQuaternion::btQuaternion(), btTransform, btVector3, and make_constraint_transforms().
Referenced by make_constraint_transforms(), RB_constraint_new_6dof(), RB_constraint_new_6dof_spring(), RB_constraint_new_6dof_spring2(), RB_constraint_new_fixed(), RB_constraint_new_hinge(), RB_constraint_new_motor(), RB_constraint_new_piston(), and RB_constraint_new_slider().
| void RB_body_activate | ( | rbRigidBody * | object | ) |
Definition at line 556 of file rb_bullet_api.cpp.
References ACTIVE_TAG, and RB_body_activate().
Referenced by RB_body_activate(), and RB_body_get_activation_state().
| void RB_body_apply_central_force | ( | rbRigidBody * | object, |
| const float | v_in[3] ) |
Definition at line 646 of file rb_bullet_api.cpp.
References btRigidBody::applyCentralForce(), btVector3, and RB_body_apply_central_force().
Referenced by RB_body_apply_central_force(), and RB_body_get_activation_state().
| void RB_body_deactivate | ( | rbRigidBody * | object | ) |
Definition at line 561 of file rb_bullet_api.cpp.
References ISLAND_SLEEPING, and RB_body_deactivate().
Referenced by RB_body_deactivate(), and RB_body_get_activation_state().
| void RB_body_delete | ( | rbRigidBody * | object | ) |
Definition at line 334 of file rb_bullet_api.cpp.
References btTypedConstraint(), btRigidBody::getConstraintRef(), btRigidBody::getMotionState(), btRigidBody::getNumConstraintRefs(), i, RB_body_delete(), and btRigidBody::removeConstraintRef().
Referenced by BKE_rigidbody_free_object(), RB_body_delete(), and RB_body_delete().
| float RB_body_get_angular_damping | ( | rbRigidBody * | object | ) |
Definition at line 444 of file rb_bullet_api.cpp.
References btRigidBody::getAngularDamping(), and RB_body_get_angular_damping().
Referenced by RB_body_get_angular_damping(), and RB_body_set_type().
| float RB_body_get_angular_sleep_thresh | ( | rbRigidBody * | object | ) |
Definition at line 472 of file rb_bullet_api.cpp.
References btRigidBody::getAngularSleepingThreshold(), and RB_body_get_angular_sleep_thresh().
Referenced by RB_body_get_angular_sleep_thresh(), RB_body_set_linear_sleep_thresh(), and RB_body_set_type().
| void RB_body_get_angular_velocity | ( | rbRigidBody * | object, |
| float | v_out[3] ) |
Definition at line 505 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), btRigidBody::getAngularVelocity(), and RB_body_get_angular_velocity().
Referenced by RB_body_get_angular_velocity(), and RB_body_set_type().
| float RB_body_get_friction | ( | rbRigidBody * | object | ) |
Definition at line 409 of file rb_bullet_api.cpp.
References RB_body_get_friction().
Referenced by RB_body_get_friction(), and RB_body_set_type().
| float RB_body_get_linear_damping | ( | rbRigidBody * | object | ) |
Definition at line 433 of file rb_bullet_api.cpp.
References btRigidBody::getLinearDamping(), and RB_body_get_linear_damping().
Referenced by RB_body_get_linear_damping(), RB_body_set_angular_damping(), RB_body_set_linear_damping(), and RB_body_set_type().
| float RB_body_get_linear_sleep_thresh | ( | rbRigidBody * | object | ) |
Definition at line 461 of file rb_bullet_api.cpp.
References btRigidBody::getLinearSleepingThreshold(), and RB_body_get_linear_sleep_thresh().
Referenced by RB_body_get_linear_sleep_thresh(), RB_body_set_angular_sleep_thresh(), and RB_body_set_type().
| void RB_body_get_linear_velocity | ( | rbRigidBody * | object, |
| float | v_out[3] ) |
Definition at line 491 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), btRigidBody::getLinearVelocity(), and RB_body_get_linear_velocity().
Referenced by RB_body_get_linear_velocity(), and RB_body_set_type().
| float RB_body_get_mass | ( | rbRigidBody * | object | ) |
Definition at line 374 of file rb_bullet_api.cpp.
References btRigidBody::getInvMass(), and RB_body_get_mass().
Referenced by RB_body_get_mass(), RB_body_set_collision_shape(), and RB_body_set_type().
| void RB_body_get_orientation | ( | rbRigidBody * | object, |
| float | v_out[4] ) |
Definition at line 626 of file rb_bullet_api.cpp.
References copy_quat_btquat(), and RB_body_get_orientation().
Referenced by ptcache_rigidbody_write(), RB_body_get_activation_state(), and RB_body_get_orientation().
| void RB_body_get_position | ( | rbRigidBody * | object, |
| float | v_out[3] ) |
Definition at line 619 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), and RB_body_get_position().
Referenced by ptcache_rigidbody_write(), RB_body_get_activation_state(), and RB_body_get_position().
| float RB_body_get_restitution | ( | rbRigidBody * | object | ) |
Definition at line 421 of file rb_bullet_api.cpp.
References RB_body_get_restitution().
Referenced by RB_body_get_restitution(), and RB_body_set_type().
| void RB_body_get_scale | ( | rbRigidBody * | object, |
| float | v_out[3] ) |
Definition at line 633 of file rb_bullet_api.cpp.
References btAssert, btCollisionShape, copy_v3_btvec3(), btRigidBody::getCollisionShape(), and RB_body_get_scale().
Referenced by RB_body_get_activation_state(), and RB_body_get_scale().
| void RB_body_get_transform_matrix | ( | rbRigidBody * | object, |
| float | m_out[4][4] ) |
Definition at line 575 of file rb_bullet_api.cpp.
References btTransform, btRigidBody::getMotionState(), btMotionState::getWorldTransform(), and RB_body_get_transform_matrix().
Referenced by RB_body_get_activation_state(), and RB_body_get_transform_matrix().
| rbRigidBody * RB_body_new | ( | rbCollisionShape * | shape, |
| const float | loc[3], | ||
| const float | rot[4] ) |
Definition at line 312 of file rb_bullet_api.cpp.
References btDefaultMotionState(), btQuaternion::btQuaternion(), btRigidBody::btRigidBody(), btTransform, btVector3, rbCollisionShape::cshape, RB_body_new(), and rot.
Referenced by RB_body_new().
| void RB_body_set_activation_state | ( | rbRigidBody * | object, |
| int | use_deactivation ) |
Definition at line 546 of file rb_bullet_api.cpp.
References ACTIVE_TAG, DISABLE_DEACTIVATION, and RB_body_set_activation_state().
Referenced by RB_body_get_activation_state(), and RB_body_set_activation_state().
| void RB_body_set_angular_damping | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 450 of file rb_bullet_api.cpp.
References RB_body_get_linear_damping(), RB_body_set_angular_damping(), and RB_body_set_damping().
Referenced by RB_body_set_angular_damping(), and RB_body_set_type().
| void RB_body_set_angular_factor | ( | rbRigidBody * | object, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Definition at line 525 of file rb_bullet_api.cpp.
References btVector3, RB_body_set_angular_factor(), btRigidBody::setAngularFactor(), x, y, and z().
Referenced by RB_body_set_angular_factor(), and RB_body_set_type().
| void RB_body_set_angular_sleep_thresh | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 478 of file rb_bullet_api.cpp.
References RB_body_get_linear_sleep_thresh(), RB_body_set_angular_sleep_thresh(), and RB_body_set_sleep_thresh().
Referenced by RB_body_set_angular_sleep_thresh(), and RB_body_set_type().
| void RB_body_set_angular_velocity | ( | rbRigidBody * | object, |
| const float | v_in[3] ) |
Definition at line 512 of file rb_bullet_api.cpp.
References btVector3, RB_body_set_angular_velocity(), and btRigidBody::setAngularVelocity().
Referenced by RB_body_set_angular_velocity(), and RB_body_set_type().
| void RB_body_set_collision_shape | ( | rbRigidBody * | object, |
| rbCollisionShape * | shape ) |
Definition at line 361 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape, RB_body_get_mass(), RB_body_set_collision_shape(), and RB_body_set_mass().
Referenced by RB_body_set_collision_shape(), and RB_body_set_type().
| void RB_body_set_damping | ( | rbRigidBody * | object, |
| float | linear, | ||
| float | angular ) |
Definition at line 455 of file rb_bullet_api.cpp.
References RB_body_set_damping(), and btRigidBody::setDamping().
Referenced by RB_body_set_angular_damping(), RB_body_set_damping(), RB_body_set_linear_damping(), and RB_body_set_type().
| void RB_body_set_friction | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 415 of file rb_bullet_api.cpp.
References RB_body_set_friction().
Referenced by RB_body_set_friction(), and RB_body_set_type().
| void RB_body_set_kinematic_state | ( | rbRigidBody * | object, |
| int | kinematic ) |
Definition at line 533 of file rb_bullet_api.cpp.
References RB_body_set_kinematic_state().
Referenced by RB_body_set_kinematic_state(), and RB_body_set_type().
| void RB_body_set_linear_damping | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 439 of file rb_bullet_api.cpp.
References RB_body_get_linear_damping(), RB_body_set_damping(), and RB_body_set_linear_damping().
Referenced by RB_body_set_linear_damping(), and RB_body_set_type().
| void RB_body_set_linear_factor | ( | rbRigidBody * | object, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Definition at line 519 of file rb_bullet_api.cpp.
References btVector3, RB_body_set_linear_factor(), btRigidBody::setLinearFactor(), x, y, and z().
Referenced by RB_body_set_linear_factor(), and RB_body_set_type().
| void RB_body_set_linear_sleep_thresh | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 467 of file rb_bullet_api.cpp.
References RB_body_get_angular_sleep_thresh(), RB_body_set_linear_sleep_thresh(), and RB_body_set_sleep_thresh().
Referenced by RB_body_set_linear_sleep_thresh(), and RB_body_set_type().
| void RB_body_set_linear_velocity | ( | rbRigidBody * | object, |
| const float | v_in[3] ) |
Definition at line 498 of file rb_bullet_api.cpp.
References btVector3, RB_body_set_linear_velocity(), and btRigidBody::setLinearVelocity().
Referenced by RB_body_set_linear_velocity(), and RB_body_set_type().
| void RB_body_set_loc_rot | ( | rbRigidBody * | object, |
| const float | loc[3], | ||
| const float | rot[4] ) |
Definition at line 586 of file rb_bullet_api.cpp.
References btQuaternion::btQuaternion(), btTransform, btVector3, btRigidBody::getMotionState(), RB_body_set_loc_rot(), rot, and btMotionState::setWorldTransform().
Referenced by RB_body_get_activation_state(), and RB_body_set_loc_rot().
| void RB_body_set_mass | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 390 of file rb_bullet_api.cpp.
References btCollisionShape, btTransform, btVector3, btRigidBody::getCollisionShape(), RB_body_set_mass(), btRigidBody::setMassProps(), and btRigidBody::updateInertiaTensor().
Referenced by RB_body_set_collision_shape(), RB_body_set_mass(), and RB_body_set_type().
| void RB_body_set_restitution | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 427 of file rb_bullet_api.cpp.
References RB_body_set_restitution().
Referenced by RB_body_set_restitution(), and RB_body_set_type().
| void RB_body_set_scale | ( | rbRigidBody * | object, |
| const float | scale[3] ) |
Definition at line 600 of file rb_bullet_api.cpp.
References btCollisionShape, btVector3, btRigidBody::getCollisionShape(), GIMPACT_SHAPE_PROXYTYPE, and RB_body_set_scale().
Referenced by RB_body_get_activation_state(), and RB_body_set_scale().
| void RB_body_set_sleep_thresh | ( | rbRigidBody * | object, |
| float | linear, | ||
| float | angular ) |
Definition at line 483 of file rb_bullet_api.cpp.
References RB_body_set_sleep_thresh(), and btRigidBody::setSleepingThresholds().
Referenced by RB_body_set_angular_sleep_thresh(), RB_body_set_linear_sleep_thresh(), RB_body_set_sleep_thresh(), and RB_body_set_type().
| void RB_compound_add_child_shape | ( | rbCollisionShape * | parentShape, |
| rbCollisionShape * | shape, | ||
| const float | loc[3], | ||
| const float | rot[4] ) |
Definition at line 855 of file rb_bullet_api.cpp.
References btCompoundShape(), btQuaternion::btQuaternion(), btTransform, btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, RB_compound_add_child_shape(), and rot.
Referenced by RB_body_get_activation_state(), and RB_compound_add_child_shape().
| void RB_constraint_delete | ( | rbConstraint * | con | ) |
Definition at line 1116 of file rb_bullet_api.cpp.
References btTypedConstraint(), and RB_constraint_delete().
Referenced by BKE_rigidbody_free_constraint(), RB_body_get_activation_state(), RB_constraint_delete(), and RB_constraint_delete().
| rbConstraint * RB_constraint_new_6dof | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1035 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofConstraint(), btTransform, btTypedConstraint(), make_constraint_transforms(), and RB_constraint_new_6dof().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_6dof().
| rbConstraint * RB_constraint_new_6dof_spring | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1053 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofSpringConstraint(), btTransform, btTypedConstraint(), make_constraint_transforms(), and RB_constraint_new_6dof_spring().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_6dof_spring().
| rbConstraint * RB_constraint_new_6dof_spring2 | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1071 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofSpring2Constraint(), btTransform, btTypedConstraint(), make_constraint_transforms(), and RB_constraint_new_6dof_spring2().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_6dof_spring2().
| rbConstraint * RB_constraint_new_fixed | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 966 of file rb_bullet_api.cpp.
References rbRigidBody::body, btTransform, make_constraint_transforms(), and RB_constraint_new_fixed().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_fixed().
| rbConstraint * RB_constraint_new_hinge | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 983 of file rb_bullet_api.cpp.
References rbRigidBody::body, btHingeConstraint(), btTransform, make_constraint_transforms(), and RB_constraint_new_hinge().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_hinge().
| rbConstraint * RB_constraint_new_motor | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1089 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofConstraint(), btTransform, i, make_constraint_transforms(), and RB_constraint_new_motor().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_motor().
| rbConstraint * RB_constraint_new_piston | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1017 of file rb_bullet_api.cpp.
References rbRigidBody::body, btSliderConstraint(), btTransform, make_constraint_transforms(), and RB_constraint_new_piston().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_piston().
| rbConstraint * RB_constraint_new_point | ( | const float | pivot[3], |
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 951 of file rb_bullet_api.cpp.
References rbRigidBody::body, btPoint2PointConstraint(), btTypedConstraint(), btVector3, and RB_constraint_new_point().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_point().
| rbConstraint * RB_constraint_new_slider | ( | float | pivot[3], |
| float | orn[4], | ||
| rbRigidBody * | rb1, | ||
| rbRigidBody * | rb2 ) |
Definition at line 1000 of file rb_bullet_api.cpp.
References rbRigidBody::body, btSliderConstraint(), btTransform, make_constraint_transforms(), and RB_constraint_new_slider().
Referenced by RB_body_get_activation_state(), and RB_constraint_new_slider().
| void RB_constraint_set_breaking_threshold | ( | rbConstraint * | con, |
| float | threshold ) |
Definition at line 1258 of file rb_bullet_api.cpp.
References btTypedConstraint(), and RB_constraint_set_breaking_threshold().
Referenced by RB_constraint_set_breaking_threshold().
| void RB_constraint_set_damping_6dof_spring | ( | rbConstraint * | con, |
| int | axis, | ||
| float | damping ) |
Definition at line 1192 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint(), and RB_constraint_set_damping_6dof_spring().
Referenced by RB_constraint_set_damping_6dof_spring().
| void RB_constraint_set_damping_6dof_spring2 | ( | rbConstraint * | con, |
| int | axis, | ||
| float | damping ) |
Definition at line 1227 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint(), and RB_constraint_set_damping_6dof_spring2().
Referenced by RB_constraint_set_damping_6dof_spring2().
| void RB_constraint_set_enable_motor | ( | rbConstraint * | con, |
| int | enable_lin, | ||
| int | enable_ang ) |
Definition at line 1265 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint(), and RB_constraint_set_enable_motor().
Referenced by RB_constraint_set_enable_motor().
| void RB_constraint_set_enabled | ( | rbConstraint * | con, |
| int | enabled ) |
Definition at line 1131 of file rb_bullet_api.cpp.
References btTypedConstraint(), and RB_constraint_set_enabled().
Referenced by RB_body_get_activation_state(), and RB_constraint_set_enabled().
| void RB_constraint_set_equilibrium_6dof_spring | ( | rbConstraint * | con | ) |
Definition at line 1211 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint(), and RB_constraint_set_equilibrium_6dof_spring().
Referenced by RB_constraint_set_equilibrium_6dof_spring().
| void RB_constraint_set_equilibrium_6dof_spring2 | ( | rbConstraint * | con | ) |
Definition at line 1243 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint(), and RB_constraint_set_equilibrium_6dof_spring2().
Referenced by RB_constraint_set_equilibrium_6dof_spring2().
| void RB_constraint_set_limits_6dof | ( | rbConstraint * | con, |
| int | axis, | ||
| float | lower, | ||
| float | upper ) |
Definition at line 1169 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint(), and RB_constraint_set_limits_6dof().
Referenced by RB_constraint_set_limits_6dof().
| void RB_constraint_set_limits_6dof_spring2 | ( | rbConstraint * | con, |
| int | axis, | ||
| float | lower, | ||
| float | upper ) |
Definition at line 1176 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint(), and RB_constraint_set_limits_6dof_spring2().
Referenced by RB_constraint_set_limits_6dof_spring2().
| void RB_constraint_set_limits_hinge | ( | rbConstraint * | con, |
| float | lower, | ||
| float | upper ) |
Definition at line 1138 of file rb_bullet_api.cpp.
References btHingeConstraint(), and RB_constraint_set_limits_hinge().
Referenced by RB_constraint_set_limits_hinge().
| void RB_constraint_set_limits_piston | ( | rbConstraint * | con, |
| float | lin_lower, | ||
| float | lin_upper, | ||
| float | ang_lower, | ||
| float | ang_upper ) |
Definition at line 1158 of file rb_bullet_api.cpp.
References btSliderConstraint(), and RB_constraint_set_limits_piston().
Referenced by RB_constraint_set_limits_piston().
| void RB_constraint_set_limits_slider | ( | rbConstraint * | con, |
| float | lower, | ||
| float | upper ) |
Definition at line 1150 of file rb_bullet_api.cpp.
References btSliderConstraint(), and RB_constraint_set_limits_slider().
Referenced by RB_constraint_set_limits_slider().
| void RB_constraint_set_max_impulse_motor | ( | rbConstraint * | con, |
| float | max_impulse_lin, | ||
| float | max_impulse_ang ) |
Definition at line 1273 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint(), and RB_constraint_set_max_impulse_motor().
Referenced by RB_constraint_set_max_impulse_motor().
| void RB_constraint_set_solver_iterations | ( | rbConstraint * | con, |
| int | num_solver_iterations ) |
Definition at line 1251 of file rb_bullet_api.cpp.
References btTypedConstraint(), and RB_constraint_set_solver_iterations().
Referenced by RB_constraint_set_solver_iterations().
| void RB_constraint_set_spring_6dof_spring | ( | rbConstraint * | con, |
| int | axis, | ||
| int | enable ) |
Definition at line 1203 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint(), and RB_constraint_set_spring_6dof_spring().
Referenced by RB_constraint_set_spring_6dof_spring().
| void RB_constraint_set_spring_6dof_spring2 | ( | rbConstraint * | con, |
| int | axis, | ||
| int | enable ) |
Definition at line 1235 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint(), and RB_constraint_set_spring_6dof_spring2().
Referenced by RB_constraint_set_spring_6dof_spring2().
| void RB_constraint_set_stiffness_6dof_spring | ( | rbConstraint * | con, |
| int | axis, | ||
| float | stiffness ) |
Definition at line 1184 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint(), and RB_constraint_set_stiffness_6dof_spring().
Referenced by RB_constraint_set_stiffness_6dof_spring().
| void RB_constraint_set_stiffness_6dof_spring2 | ( | rbConstraint * | con, |
| int | axis, | ||
| float | stiffness ) |
Definition at line 1219 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint(), and RB_constraint_set_stiffness_6dof_spring2().
Referenced by RB_constraint_set_stiffness_6dof_spring2().
| void RB_constraint_set_target_velocity_motor | ( | rbConstraint * | con, |
| float | velocity_lin, | ||
| float | velocity_ang ) |
Definition at line 1283 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint(), and RB_constraint_set_target_velocity_motor().
Referenced by RB_constraint_set_target_velocity_motor().
| void RB_dworld_add_body | ( | rbDynamicsWorld * | world, |
| rbRigidBody * | object, | ||
| int | col_groups ) |
Definition at line 230 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, and RB_dworld_add_body().
Referenced by RB_dworld_add_body().
| void RB_dworld_add_constraint | ( | rbDynamicsWorld * | world, |
| rbConstraint * | con, | ||
| int | disable_collisions ) |
Definition at line 919 of file rb_bullet_api.cpp.
References btTypedConstraint(), rbDynamicsWorld::dynamicsWorld, and RB_dworld_add_constraint().
Referenced by RB_body_get_activation_state(), and RB_dworld_add_constraint().
| void RB_dworld_delete | ( | rbDynamicsWorld * | world | ) |
Definition at line 151 of file rb_bullet_api.cpp.
References rbDynamicsWorld::collisionConfiguration, rbDynamicsWorld::constraintSolver, rbDynamicsWorld::dispatcher, rbDynamicsWorld::dynamicsWorld, rbDynamicsWorld::filterCallback, rbDynamicsWorld::pairCache, and RB_dworld_delete().
Referenced by RB_dworld_delete(), and RB_dworld_delete().
| void RB_dworld_export | ( | rbDynamicsWorld * | world, |
| const char * | filename ) |
Exports entire dynamics world to Bullet's "*.bullet" binary format which is similar to Blender's SDNA system.
| world | Dynamics world to write to file |
| filename | Assumed to be a valid filename, with .bullet extension |
Definition at line 207 of file rb_bullet_api.cpp.
References btDefaultSerializer::btDefaultSerializer(), rbDynamicsWorld::dynamicsWorld, btDefaultSerializer::getBufferPointer(), btDefaultSerializer::getCurrentBufferSize(), and RB_dworld_export().
Referenced by RB_dworld_export(), and rigidbody_world_export_exec().
| void RB_dworld_get_gravity | ( | rbDynamicsWorld * | world, |
| float | g_out[3] ) |
Definition at line 167 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), rbDynamicsWorld::dynamicsWorld, and RB_dworld_get_gravity().
Referenced by RB_dworld_get_gravity().
| rbDynamicsWorld * RB_dworld_new | ( | const float | gravity[3] | ) |
Definition at line 124 of file rb_bullet_api.cpp.
References btCollisionDispatcher::btCollisionDispatcher(), btDbvtBroadphase::btDbvtBroadphase(), btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(), btDiscreteDynamicsWorld(), btSequentialImpulseConstraintSolver(), rbDynamicsWorld::collisionConfiguration, rbDynamicsWorld::constraintSolver, rbDynamicsWorld::dispatcher, rbDynamicsWorld::dynamicsWorld, rbDynamicsWorld::filterCallback, btBroadphaseInterface::getOverlappingPairCache(), rbDynamicsWorld::pairCache, RB_dworld_new(), RB_dworld_set_gravity(), btGImpactCollisionAlgorithm::registerAlgorithm(), and btOverlappingPairCache::setOverlapFilterCallback().
Referenced by RB_dworld_new().
| void RB_dworld_remove_body | ( | rbDynamicsWorld * | world, |
| rbRigidBody * | object ) |
Definition at line 238 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, and RB_dworld_remove_body().
Referenced by BKE_rigidbody_free_object(), RB_dworld_remove_body(), and RB_dworld_remove_body().
| void RB_dworld_remove_constraint | ( | rbDynamicsWorld * | world, |
| rbConstraint * | con ) |
Definition at line 926 of file rb_bullet_api.cpp.
References btTypedConstraint(), rbDynamicsWorld::dynamicsWorld, and RB_dworld_remove_constraint().
Referenced by BKE_rigidbody_free_world(), RB_body_get_activation_state(), RB_dworld_remove_constraint(), and RB_dworld_remove_constraint().
| void RB_dworld_set_gravity | ( | rbDynamicsWorld * | world, |
| const float | g_in[3] ) |
Definition at line 172 of file rb_bullet_api.cpp.
References btVector3, rbDynamicsWorld::dynamicsWorld, and RB_dworld_set_gravity().
Referenced by RB_dworld_new(), and RB_dworld_set_gravity().
| void RB_dworld_set_solver_iterations | ( | rbDynamicsWorld * | world, |
| int | num_solver_iterations ) |
Definition at line 179 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, btContactSolverInfoData::m_numIterations, and RB_dworld_set_solver_iterations().
Referenced by RB_dworld_set_solver_iterations().
| void RB_dworld_set_split_impulse | ( | rbDynamicsWorld * | world, |
| int | split_impulse ) |
Definition at line 188 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, btContactSolverInfoData::m_splitImpulse, and RB_dworld_set_split_impulse().
Referenced by RB_dworld_set_split_impulse().
| void RB_dworld_step_simulation | ( | rbDynamicsWorld * | world, |
| float | timeStep, | ||
| int | maxSubSteps, | ||
| float | timeSubStep ) |
Definition at line 197 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, and RB_dworld_step_simulation().
Referenced by RB_dworld_step_simulation().
| void RB_shape_delete | ( | rbCollisionShape * | shape | ) |
Definition at line 878 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, free(), i, rbCollisionShape::mesh, RB_shape_delete(), RB_trimesh_data_delete(), and SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE.
Referenced by BKE_rigidbody_free_object(), RB_body_get_activation_state(), RB_shape_delete(), and RB_shape_delete().
| float RB_shape_get_margin | ( | rbCollisionShape * | shape | ) |
Definition at line 904 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape, and RB_shape_get_margin().
Referenced by RB_body_get_activation_state(), and RB_shape_get_margin().
| rbCollisionShape * RB_shape_new_box | ( | float | x, |
| float | y, | ||
| float | z ) |
Definition at line 658 of file rb_bullet_api.cpp.
References btBoxShape(), btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, RB_shape_new_box(), x, y, and z().
Referenced by RB_body_get_activation_state(), and RB_shape_new_box().
| rbCollisionShape * RB_shape_new_capsule | ( | float | radius, |
| float | height ) |
Definition at line 678 of file rb_bullet_api.cpp.
References btCapsuleShapeZ::btCapsuleShapeZ(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and RB_shape_new_capsule().
Referenced by RB_body_get_activation_state(), and RB_shape_new_capsule().
| rbCollisionShape * RB_shape_new_compound | ( | void | ) |
Definition at line 843 of file rb_bullet_api.cpp.
References btCompoundShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and RB_shape_new_compound().
Referenced by RB_body_get_activation_state(), and RB_shape_new_compound().
| rbCollisionShape * RB_shape_new_cone | ( | float | radius, |
| float | height ) |
Definition at line 688 of file rb_bullet_api.cpp.
References btConeShapeZ::btConeShapeZ(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and RB_shape_new_cone().
Referenced by RB_body_get_activation_state(), and RB_shape_new_cone().
| rbCollisionShape * RB_shape_new_convex_hull | ( | const float * | verts, |
| int | stride, | ||
| int | count, | ||
| float | margin, | ||
| bool * | can_embed ) |
Definition at line 710 of file rb_bullet_api.cpp.
References btConvexHullShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, RB_shape_new_convex_hull(), btAlignedObjectArray< T >::size(), and btConvexHullComputer::vertices.
Referenced by RB_body_get_activation_state(), and RB_shape_new_convex_hull().
| rbCollisionShape * RB_shape_new_cylinder | ( | float | radius, |
| float | height ) |
Definition at line 698 of file rb_bullet_api.cpp.
References btCylinderShapeZ::btCylinderShapeZ(), btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and RB_shape_new_cylinder().
Referenced by RB_body_get_activation_state(), and RB_shape_new_cylinder().
| rbCollisionShape * RB_shape_new_gimpact_mesh | ( | rbMeshData * | mesh | ) |
Definition at line 827 of file rb_bullet_api.cpp.
References btGImpactMeshShape::btGImpactMeshShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbMeshData::index_array, rbCollisionShape::mesh, RB_shape_new_gimpact_mesh(), and btGImpactShapeInterface::updateBound().
Referenced by RB_body_get_activation_state(), and RB_shape_new_gimpact_mesh().
| rbCollisionShape * RB_shape_new_sphere | ( | float | radius | ) |
Definition at line 668 of file rb_bullet_api.cpp.
References btSphereShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and RB_shape_new_sphere().
Referenced by RB_body_get_activation_state(), and RB_shape_new_sphere().
| rbCollisionShape * RB_shape_new_trimesh | ( | rbMeshData * | mesh | ) |
Definition at line 782 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbMeshData::index_array, rbCollisionShape::mesh, and RB_shape_new_trimesh().
Referenced by RB_body_get_activation_state(), and RB_shape_new_trimesh().
| void RB_shape_set_margin | ( | rbCollisionShape * | shape, |
| float | value ) |
Definition at line 909 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape, and RB_shape_set_margin().
Referenced by RB_body_get_activation_state(), and RB_shape_set_margin().
| void RB_shape_trimesh_update | ( | rbCollisionShape * | shape, |
| const float * | vertices, | ||
| int | num_verts, | ||
| int | vert_stride, | ||
| const float | min[3], | ||
| const float | max[3] ) |
Definition at line 798 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), btVector3, rbCollisionShape::cshape, GIMPACT_SHAPE_PROXYTYPE, i, max, rbCollisionShape::mesh, min, rbMeshData::num_vertices, RB_shape_trimesh_update(), SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE, btGImpactShapeInterface::updateBound(), rbMeshData::vertices, rbVert::x, rbVert::y, and rbVert::z.
Referenced by RB_body_get_activation_state(), and RB_shape_trimesh_update().
| void RB_trimesh_add_triangle_indices | ( | rbMeshData * | mesh, |
| int | num, | ||
| int | index0, | ||
| int | index1, | ||
| int | index2 ) |
Definition at line 765 of file rb_bullet_api.cpp.
References num, RB_trimesh_add_triangle_indices(), rbMeshData::triangles, rbTri::v0, rbTri::v1, and rbTri::v2.
Referenced by RB_body_get_activation_state(), and RB_trimesh_add_triangle_indices().
| void RB_trimesh_add_vertices | ( | rbMeshData * | mesh, |
| float * | vertices, | ||
| int | num_verts, | ||
| int | vert_stride ) |
Definition at line 756 of file rb_bullet_api.cpp.
References i, RB_trimesh_add_vertices(), rbMeshData::vertices, rbVert::x, rbVert::y, and rbVert::z.
Referenced by RB_body_get_activation_state(), and RB_trimesh_add_vertices().
|
static |
Definition at line 748 of file rb_bullet_api.cpp.
References rbMeshData::index_array, RB_trimesh_data_delete(), rbMeshData::triangles, and rbMeshData::vertices.
Referenced by RB_shape_delete(), and RB_trimesh_data_delete().
| rbMeshData * RB_trimesh_data_new | ( | int | num_tris, |
| int | num_verts ) |
Definition at line 737 of file rb_bullet_api.cpp.
References rbMeshData::num_triangles, rbMeshData::num_vertices, RB_trimesh_data_new(), rbMeshData::triangles, and rbMeshData::vertices.
Referenced by RB_body_get_activation_state(), and RB_trimesh_data_new().
| void RB_trimesh_finish | ( | rbMeshData * | mesh | ) |
Definition at line 772 of file rb_bullet_api.cpp.
References btTriangleIndexVertexArray(), rbMeshData::index_array, rbMeshData::num_triangles, rbMeshData::num_vertices, RB_trimesh_finish(), rbMeshData::triangles, and rbMeshData::vertices.
Referenced by RB_body_get_activation_state(), and RB_trimesh_finish().
| void RB_world_convex_sweep_test | ( | rbDynamicsWorld * | world, |
| rbRigidBody * | object, | ||
| const float | loc_start[3], | ||
| const float | loc_end[3], | ||
| float | v_location[3], | ||
| float | v_hitpoint[3], | ||
| float | v_normal[3], | ||
| int * | r_hit ) |
Definition at line 247 of file rb_bullet_api.cpp.
References btCollisionShape, btConvexShape(), btTransform, btVector3, rbDynamicsWorld::dynamicsWorld, btRigidBody::getCollisionShape(), RB_world_convex_sweep_test(), and result.
Referenced by RB_world_convex_sweep_test().