Blender
V3.3
|
Rigid Body API for interfacing with external Physics Engines. More...
Go to the source code of this file.
Macros | |
#define | RB_LIMIT_LIN_X 0 |
#define | RB_LIMIT_LIN_Y 1 |
#define | RB_LIMIT_LIN_Z 2 |
#define | RB_LIMIT_ANG_X 3 |
#define | RB_LIMIT_ANG_Y 4 |
#define | RB_LIMIT_ANG_Z 5 |
Typedefs | |
typedef struct rbDynamicsWorld | rbDynamicsWorld |
typedef struct rbRigidBody | rbRigidBody |
typedef struct rbCollisionShape | rbCollisionShape |
typedef struct rbMeshData | rbMeshData |
typedef struct rbConstraint | rbConstraint |
Rigid Body API for interfacing with external Physics Engines.
Definition in file RBI_api.h.
typedef struct rbCollisionShape rbCollisionShape |
typedef struct rbConstraint rbConstraint |
typedef struct rbDynamicsWorld rbDynamicsWorld |
typedef struct rbMeshData rbMeshData |
typedef struct rbRigidBody rbRigidBody |
void RB_body_activate | ( | rbRigidBody * | body | ) |
Definition at line 559 of file rb_bullet_api.cpp.
References ACTIVE_TAG.
void RB_body_apply_central_force | ( | rbRigidBody * | body, |
const float | v_in[3] | ||
) |
Definition at line 649 of file rb_bullet_api.cpp.
References btRigidBody::applyCentralForce(), and btVector3.
void RB_body_deactivate | ( | rbRigidBody * | body | ) |
Definition at line 564 of file rb_bullet_api.cpp.
References ISLAND_SLEEPING.
void RB_body_delete | ( | rbRigidBody * | body | ) |
Definition at line 337 of file rb_bullet_api.cpp.
References btTypedConstraint(), btRigidBody::getConstraintRef(), btRigidBody::getMotionState(), btRigidBody::getNumConstraintRefs(), and btRigidBody::removeConstraintRef().
int RB_body_get_activation_state | ( | rbRigidBody * | body | ) |
float RB_body_get_angular_damping | ( | rbRigidBody * | body | ) |
Definition at line 447 of file rb_bullet_api.cpp.
References btRigidBody::getAngularDamping().
float RB_body_get_angular_sleep_thresh | ( | rbRigidBody * | body | ) |
Definition at line 475 of file rb_bullet_api.cpp.
References btRigidBody::getAngularSleepingThreshold().
Referenced by RB_body_set_linear_sleep_thresh().
void RB_body_get_angular_velocity | ( | rbRigidBody * | body, |
float | v_out[3] | ||
) |
Definition at line 508 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), and btRigidBody::getAngularVelocity().
float RB_body_get_friction | ( | rbRigidBody * | body | ) |
Definition at line 412 of file rb_bullet_api.cpp.
float RB_body_get_linear_damping | ( | rbRigidBody * | body | ) |
Definition at line 436 of file rb_bullet_api.cpp.
References btRigidBody::getLinearDamping().
Referenced by RB_body_set_angular_damping(), and RB_body_set_linear_damping().
float RB_body_get_linear_sleep_thresh | ( | rbRigidBody * | body | ) |
Definition at line 464 of file rb_bullet_api.cpp.
References btRigidBody::getLinearSleepingThreshold().
Referenced by RB_body_set_angular_sleep_thresh().
void RB_body_get_linear_velocity | ( | rbRigidBody * | body, |
float | v_out[3] | ||
) |
Definition at line 494 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), and btRigidBody::getLinearVelocity().
float RB_body_get_mass | ( | rbRigidBody * | body | ) |
Definition at line 377 of file rb_bullet_api.cpp.
References float(), and btRigidBody::getInvMass().
Referenced by RB_body_set_collision_shape().
void RB_body_get_orientation | ( | rbRigidBody * | body, |
float | v_out[4] | ||
) |
Definition at line 629 of file rb_bullet_api.cpp.
References copy_quat_btquat().
Referenced by ptcache_rigidbody_write().
void RB_body_get_position | ( | rbRigidBody * | body, |
float | v_out[3] | ||
) |
Definition at line 622 of file rb_bullet_api.cpp.
References copy_v3_btvec3().
Referenced by ptcache_rigidbody_write().
float RB_body_get_restitution | ( | rbRigidBody * | body | ) |
Definition at line 424 of file rb_bullet_api.cpp.
void RB_body_get_scale | ( | rbRigidBody * | object, |
float | v_out[3] | ||
) |
Definition at line 636 of file rb_bullet_api.cpp.
References btAssert, btCollisionShape, copy_v3_btvec3(), and btRigidBody::getCollisionShape().
void RB_body_get_transform_matrix | ( | rbRigidBody * | body, |
float | m_out[4][4] | ||
) |
Definition at line 578 of file rb_bullet_api.cpp.
References btTransform, btRigidBody::getMotionState(), and btMotionState::getWorldTransform().
rbRigidBody* RB_body_new | ( | rbCollisionShape * | shape, |
const float | loc[3], | ||
const float | rot[4] | ||
) |
Definition at line 315 of file rb_bullet_api.cpp.
References btDefaultMotionState(), btTransform, btVector3, rbCollisionShape::cshape, and rot.
void RB_body_set_activation_state | ( | rbRigidBody * | body, |
int | use_deactivation | ||
) |
Definition at line 549 of file rb_bullet_api.cpp.
References ACTIVE_TAG, and DISABLE_DEACTIVATION.
void RB_body_set_angular_damping | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 453 of file rb_bullet_api.cpp.
References RB_body_get_linear_damping(), and RB_body_set_damping().
void RB_body_set_angular_factor | ( | rbRigidBody * | object, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Definition at line 528 of file rb_bullet_api.cpp.
References btVector3, btRigidBody::setAngularFactor(), x, y, and z.
void RB_body_set_angular_sleep_thresh | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 481 of file rb_bullet_api.cpp.
References RB_body_get_linear_sleep_thresh(), and RB_body_set_sleep_thresh().
void RB_body_set_angular_velocity | ( | rbRigidBody * | body, |
const float | v_in[3] | ||
) |
Definition at line 515 of file rb_bullet_api.cpp.
References btVector3, and btRigidBody::setAngularVelocity().
void RB_body_set_collision_shape | ( | rbRigidBody * | body, |
rbCollisionShape * | shape | ||
) |
Definition at line 364 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape, RB_body_get_mass(), and RB_body_set_mass().
void RB_body_set_damping | ( | rbRigidBody * | object, |
float | linear, | ||
float | angular | ||
) |
Definition at line 458 of file rb_bullet_api.cpp.
References btRigidBody::setDamping().
Referenced by RB_body_set_angular_damping(), and RB_body_set_linear_damping().
void RB_body_set_friction | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 418 of file rb_bullet_api.cpp.
void RB_body_set_kinematic_state | ( | rbRigidBody * | body, |
int | kinematic | ||
) |
Definition at line 536 of file rb_bullet_api.cpp.
References CF_KINEMATIC_OBJECT.
void RB_body_set_linear_damping | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 442 of file rb_bullet_api.cpp.
References RB_body_get_linear_damping(), and RB_body_set_damping().
void RB_body_set_linear_factor | ( | rbRigidBody * | object, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Definition at line 522 of file rb_bullet_api.cpp.
References btVector3, btRigidBody::setLinearFactor(), x, y, and z.
void RB_body_set_linear_sleep_thresh | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 470 of file rb_bullet_api.cpp.
References RB_body_get_angular_sleep_thresh(), and RB_body_set_sleep_thresh().
void RB_body_set_linear_velocity | ( | rbRigidBody * | body, |
const float | v_in[3] | ||
) |
Definition at line 501 of file rb_bullet_api.cpp.
References btVector3, and btRigidBody::setLinearVelocity().
void RB_body_set_loc_rot | ( | rbRigidBody * | body, |
const float | loc[3], | ||
const float | rot[4] | ||
) |
Definition at line 589 of file rb_bullet_api.cpp.
References btTransform, btVector3, btRigidBody::getMotionState(), rot, and btMotionState::setWorldTransform().
void RB_body_set_mass | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 393 of file rb_bullet_api.cpp.
References btCollisionShape, btTransform, btVector3, btRigidBody::getCollisionShape(), btRigidBody::setMassProps(), and btRigidBody::updateInertiaTensor().
Referenced by RB_body_set_collision_shape().
void RB_body_set_restitution | ( | rbRigidBody * | body, |
float | value | ||
) |
Definition at line 430 of file rb_bullet_api.cpp.
void RB_body_set_scale | ( | rbRigidBody * | body, |
const float | scale[3] | ||
) |
Definition at line 603 of file rb_bullet_api.cpp.
References btCollisionShape, btVector3, btRigidBody::getCollisionShape(), and GIMPACT_SHAPE_PROXYTYPE.
void RB_body_set_sleep_thresh | ( | rbRigidBody * | body, |
float | linear, | ||
float | angular | ||
) |
Definition at line 486 of file rb_bullet_api.cpp.
References btRigidBody::setSleepingThresholds().
Referenced by RB_body_set_angular_sleep_thresh(), and RB_body_set_linear_sleep_thresh().
void RB_body_set_type | ( | rbRigidBody * | body, |
int | type, | ||
float | mass | ||
) |
void RB_compound_add_child_shape | ( | rbCollisionShape * | collisionShape, |
rbCollisionShape * | shape, | ||
const float | loc[3], | ||
const float | rot[4] | ||
) |
Definition at line 858 of file rb_bullet_api.cpp.
References btCompoundShape(), btTransform, btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rot.
void RB_constraint_delete | ( | rbConstraint * | con | ) |
Definition at line 1119 of file rb_bullet_api.cpp.
References btTypedConstraint().
rbConstraint* RB_constraint_new_6dof | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1038 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofConstraint(), btTransform, btTypedConstraint(), and make_constraint_transforms().
rbConstraint* RB_constraint_new_6dof_spring | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1056 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofSpringConstraint(), btTransform, btTypedConstraint(), and make_constraint_transforms().
rbConstraint* RB_constraint_new_6dof_spring2 | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1074 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofSpring2Constraint(), btTransform, btTypedConstraint(), and make_constraint_transforms().
rbConstraint* RB_constraint_new_fixed | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 969 of file rb_bullet_api.cpp.
References rbRigidBody::body, btTransform, and make_constraint_transforms().
rbConstraint* RB_constraint_new_hinge | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 986 of file rb_bullet_api.cpp.
References rbRigidBody::body, btHingeConstraint(), btTransform, and make_constraint_transforms().
rbConstraint* RB_constraint_new_motor | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1092 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofConstraint(), btTransform, and make_constraint_transforms().
rbConstraint* RB_constraint_new_piston | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1020 of file rb_bullet_api.cpp.
References rbRigidBody::body, btSliderConstraint(), btTransform, and make_constraint_transforms().
rbConstraint* RB_constraint_new_point | ( | float | pivot[3], |
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 954 of file rb_bullet_api.cpp.
References rbRigidBody::body, btPoint2PointConstraint(), btTypedConstraint(), and btVector3.
rbConstraint* RB_constraint_new_slider | ( | float | pivot[3], |
float | orn[4], | ||
rbRigidBody * | rb1, | ||
rbRigidBody * | rb2 | ||
) |
Definition at line 1003 of file rb_bullet_api.cpp.
References rbRigidBody::body, btSliderConstraint(), btTransform, and make_constraint_transforms().
void RB_constraint_set_breaking_threshold | ( | rbConstraint * | con, |
float | threshold | ||
) |
Definition at line 1254 of file rb_bullet_api.cpp.
References btTypedConstraint(), and threshold.
void RB_constraint_set_damping_6dof_spring | ( | rbConstraint * | con, |
int | axis, | ||
float | damping | ||
) |
Definition at line 1188 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint().
void RB_constraint_set_damping_6dof_spring2 | ( | rbConstraint * | con, |
int | axis, | ||
float | damping | ||
) |
Definition at line 1223 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
void RB_constraint_set_enable_motor | ( | rbConstraint * | con, |
int | enable_lin, | ||
int | enable_ang | ||
) |
Definition at line 1261 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint().
void RB_constraint_set_enabled | ( | rbConstraint * | con, |
int | enabled | ||
) |
Definition at line 1127 of file rb_bullet_api.cpp.
References btTypedConstraint(), and enabled.
void RB_constraint_set_equilibrium_6dof_spring | ( | rbConstraint * | con | ) |
Definition at line 1207 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint().
void RB_constraint_set_equilibrium_6dof_spring2 | ( | rbConstraint * | con | ) |
Definition at line 1239 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
void RB_constraint_set_limits_6dof | ( | rbConstraint * | con, |
int | axis, | ||
float | lower, | ||
float | upper | ||
) |
Definition at line 1165 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint().
void RB_constraint_set_limits_6dof_spring2 | ( | rbConstraint * | con, |
int | axis, | ||
float | lower, | ||
float | upper | ||
) |
Definition at line 1172 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
void RB_constraint_set_limits_hinge | ( | rbConstraint * | con, |
float | lower, | ||
float | upper | ||
) |
Definition at line 1134 of file rb_bullet_api.cpp.
References btHingeConstraint().
void RB_constraint_set_limits_piston | ( | rbConstraint * | con, |
float | lin_lower, | ||
float | lin_upper, | ||
float | ang_lower, | ||
float | ang_upper | ||
) |
Definition at line 1154 of file rb_bullet_api.cpp.
References btSliderConstraint().
void RB_constraint_set_limits_slider | ( | rbConstraint * | con, |
float | lower, | ||
float | upper | ||
) |
Definition at line 1146 of file rb_bullet_api.cpp.
References btSliderConstraint().
void RB_constraint_set_max_impulse_motor | ( | rbConstraint * | con, |
float | max_impulse_lin, | ||
float | max_impulse_ang | ||
) |
Definition at line 1269 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint().
void RB_constraint_set_solver_iterations | ( | rbConstraint * | con, |
int | num_solver_iterations | ||
) |
Definition at line 1247 of file rb_bullet_api.cpp.
References btTypedConstraint().
void RB_constraint_set_spring_6dof_spring | ( | rbConstraint * | con, |
int | axis, | ||
int | enable | ||
) |
Definition at line 1199 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint().
void RB_constraint_set_spring_6dof_spring2 | ( | rbConstraint * | con, |
int | axis, | ||
int | enable | ||
) |
Definition at line 1231 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
void RB_constraint_set_stiffness_6dof_spring | ( | rbConstraint * | con, |
int | axis, | ||
float | stiffness | ||
) |
Definition at line 1180 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint().
void RB_constraint_set_stiffness_6dof_spring2 | ( | rbConstraint * | con, |
int | axis, | ||
float | stiffness | ||
) |
Definition at line 1215 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
void RB_constraint_set_target_velocity_motor | ( | rbConstraint * | con, |
float | velocity_lin, | ||
float | velocity_ang | ||
) |
Definition at line 1279 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint().
void RB_dworld_add_body | ( | rbDynamicsWorld * | world, |
rbRigidBody * | body, | ||
int | col_groups | ||
) |
Definition at line 233 of file rb_bullet_api.cpp.
References world.
void RB_dworld_add_constraint | ( | rbDynamicsWorld * | world, |
rbConstraint * | con, | ||
int | disable_collisions | ||
) |
Definition at line 922 of file rb_bullet_api.cpp.
References btTypedConstraint(), and world.
void RB_dworld_delete | ( | rbDynamicsWorld * | world | ) |
Definition at line 150 of file rb_bullet_api.cpp.
References world.
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 210 of file rb_bullet_api.cpp.
References file, btDefaultSerializer::getBufferPointer(), btDefaultSerializer::getCurrentBufferSize(), and world.
Referenced by rigidbody_world_export_exec().
void RB_dworld_get_gravity | ( | rbDynamicsWorld * | world, |
float | g_out[3] | ||
) |
Definition at line 165 of file rb_bullet_api.cpp.
References copy_v3_btvec3(), and world.
rbDynamicsWorld* RB_dworld_new | ( | const float | gravity[3] | ) |
Definition at line 123 of file rb_bullet_api.cpp.
References btDiscreteDynamicsWorld(), btSequentialImpulseConstraintSolver(), RB_dworld_set_gravity(), btGImpactCollisionAlgorithm::registerAlgorithm(), and world.
void RB_dworld_remove_body | ( | rbDynamicsWorld * | world, |
rbRigidBody * | body | ||
) |
Definition at line 241 of file rb_bullet_api.cpp.
References world.
void RB_dworld_remove_constraint | ( | rbDynamicsWorld * | world, |
rbConstraint * | con | ||
) |
Definition at line 929 of file rb_bullet_api.cpp.
References btTypedConstraint(), and world.
void RB_dworld_set_gravity | ( | rbDynamicsWorld * | world, |
const float | g_in[3] | ||
) |
Definition at line 170 of file rb_bullet_api.cpp.
References btVector3, and world.
Referenced by RB_dworld_new().
void RB_dworld_set_solver_iterations | ( | rbDynamicsWorld * | world, |
int | num_solver_iterations | ||
) |
Definition at line 176 of file rb_bullet_api.cpp.
References btContactSolverInfoData::m_numIterations, and world.
void RB_dworld_set_split_impulse | ( | rbDynamicsWorld * | world, |
int | split_impulse | ||
) |
Definition at line 184 of file rb_bullet_api.cpp.
References btContactSolverInfoData::m_splitImpulse, and world.
void RB_dworld_step_simulation | ( | rbDynamicsWorld * | world, |
float | timeStep, | ||
int | maxSubSteps, | ||
float | timeSubStep | ||
) |
Definition at line 193 of file rb_bullet_api.cpp.
References world.
void RB_shape_delete | ( | rbCollisionShape * | shape | ) |
Definition at line 881 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, free(), rbCollisionShape::mesh, NULL, RB_trimesh_data_delete(), and SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE.
float RB_shape_get_margin | ( | rbCollisionShape * | shape | ) |
Definition at line 907 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape.
rbCollisionShape* RB_shape_new_box | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 661 of file rb_bullet_api.cpp.
References btBoxShape(), btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, NULL, x, y, and z.
rbCollisionShape* RB_shape_new_capsule | ( | float | radius, |
float | height | ||
) |
Definition at line 681 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, height, rbCollisionShape::mesh, and NULL.
rbCollisionShape* RB_shape_new_compound | ( | void | ) |
Definition at line 846 of file rb_bullet_api.cpp.
References btCompoundShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and NULL.
rbCollisionShape* RB_shape_new_cone | ( | float | radius, |
float | height | ||
) |
Definition at line 691 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, height, rbCollisionShape::mesh, and NULL.
rbCollisionShape* RB_shape_new_convex_hull | ( | float * | verts, |
int | stride, | ||
int | count, | ||
float | margin, | ||
bool * | can_embed | ||
) |
Definition at line 713 of file rb_bullet_api.cpp.
References btConvexHullShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, count, rbCollisionShape::cshape, rbCollisionShape::mesh, NULL, btAlignedObjectArray< T >::size(), stride, btConvexHullComputer::vertices, and verts.
rbCollisionShape* RB_shape_new_cylinder | ( | float | radius, |
float | height | ||
) |
Definition at line 701 of file rb_bullet_api.cpp.
References btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, height, rbCollisionShape::mesh, and NULL.
rbCollisionShape* RB_shape_new_gimpact_mesh | ( | rbMeshData * | mesh | ) |
Definition at line 830 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, mesh, NULL, and btGImpactShapeInterface::updateBound().
rbCollisionShape* RB_shape_new_sphere | ( | float | radius | ) |
Definition at line 671 of file rb_bullet_api.cpp.
References btSphereShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, and NULL.
rbCollisionShape* RB_shape_new_trimesh | ( | rbMeshData * | mesh | ) |
Definition at line 785 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbCollisionShape::mesh, mesh, and NULL.
void RB_shape_set_margin | ( | rbCollisionShape * | shape, |
float | value | ||
) |
Definition at line 912 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape.
void RB_shape_trimesh_update | ( | rbCollisionShape * | shape, |
float * | vertices, | ||
int | num_verts, | ||
int | vert_stride, | ||
const float | min[3], | ||
const float | max[3] | ||
) |
Definition at line 801 of file rb_bullet_api.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), btVector3, rbCollisionShape::cshape, GIMPACT_SHAPE_PROXYTYPE, max, rbCollisionShape::mesh, min, NULL, rbMeshData::num_vertices, SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE, btGImpactShapeInterface::updateBound(), rbMeshData::vertices, rbVert::x, rbVert::y, and rbVert::z.
void RB_trimesh_add_triangle_indices | ( | rbMeshData * | mesh, |
int | num, | ||
int | index0, | ||
int | index1, | ||
int | index2 | ||
) |
Definition at line 768 of file rb_bullet_api.cpp.
References mesh.
void RB_trimesh_add_vertices | ( | rbMeshData * | mesh, |
float * | vertices, | ||
int | num_verts, | ||
int | vert_stride | ||
) |
Definition at line 759 of file rb_bullet_api.cpp.
References mesh.
rbMeshData* RB_trimesh_data_new | ( | int | num_tris, |
int | num_verts | ||
) |
Definition at line 740 of file rb_bullet_api.cpp.
References mesh, and Mesh::num_triangles().
void RB_trimesh_finish | ( | rbMeshData * | mesh | ) |
Definition at line 775 of file rb_bullet_api.cpp.
References btTriangleIndexVertexArray(), mesh, and Mesh::num_triangles().
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 250 of file rb_bullet_api.cpp.
References btCollisionShape, btConvexShape(), btTransform, btVector3, btRigidBody::getCollisionShape(), result, and world.