|
Blender V5.0
|
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 btQuaternion::getW().
Referenced by RB_body_get_orientation().
Definition at line 105 of file rb_bullet_api.cpp.
References btVector3, and float.
Referenced by 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 btTransform, and btVector3.
Referenced by 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.
| 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(), and btVector3.
| void RB_body_deactivate | ( | rbRigidBody * | object | ) |
Definition at line 561 of file rb_bullet_api.cpp.
References ISLAND_SLEEPING.
| 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, and btRigidBody::removeConstraintRef().
| float RB_body_get_angular_damping | ( | rbRigidBody * | object | ) |
Definition at line 444 of file rb_bullet_api.cpp.
References btRigidBody::getAngularDamping().
| float RB_body_get_angular_sleep_thresh | ( | rbRigidBody * | object | ) |
Definition at line 472 of file rb_bullet_api.cpp.
References btRigidBody::getAngularSleepingThreshold().
Referenced by RB_body_set_linear_sleep_thresh().
| 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(), and btRigidBody::getAngularVelocity().
| float RB_body_get_friction | ( | rbRigidBody * | object | ) |
Definition at line 409 of file rb_bullet_api.cpp.
| float RB_body_get_linear_damping | ( | rbRigidBody * | object | ) |
Definition at line 433 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 * | object | ) |
Definition at line 461 of file rb_bullet_api.cpp.
References btRigidBody::getLinearSleepingThreshold().
Referenced by RB_body_set_angular_sleep_thresh().
| 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(), and btRigidBody::getLinearVelocity().
| float RB_body_get_mass | ( | rbRigidBody * | object | ) |
Definition at line 374 of file rb_bullet_api.cpp.
References float, and btRigidBody::getInvMass().
Referenced by RB_body_set_collision_shape().
| 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().
Referenced by ptcache_rigidbody_write().
| 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().
Referenced by ptcache_rigidbody_write().
| float RB_body_get_restitution | ( | rbRigidBody * | object | ) |
Definition at line 421 of file rb_bullet_api.cpp.
| 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(), and btRigidBody::getCollisionShape().
| 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(), and btMotionState::getWorldTransform().
| 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(), btTransform, btVector3, rbCollisionShape::cshape, and rot.
| void RB_body_set_activation_state | ( | rbRigidBody * | object, |
| int | use_deactivation ) |
Definition at line 546 of file rb_bullet_api.cpp.
References ACTIVE_TAG, and DISABLE_DEACTIVATION.
| 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(), and RB_body_set_damping().
| 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, btRigidBody::setAngularFactor(), x, y, and z().
| 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(), and RB_body_set_sleep_thresh().
| 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, and btRigidBody::setAngularVelocity().
| 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(), and RB_body_set_mass().
| void RB_body_set_damping | ( | rbRigidBody * | object, |
| float | linear, | ||
| float | angular ) |
Definition at line 455 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 * | object, |
| float | value ) |
Definition at line 415 of file rb_bullet_api.cpp.
| void RB_body_set_kinematic_state | ( | rbRigidBody * | object, |
| int | kinematic ) |
Definition at line 533 of file rb_bullet_api.cpp.
| 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(), and RB_body_set_damping().
| 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, btRigidBody::setLinearFactor(), x, y, and z().
| 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(), and RB_body_set_sleep_thresh().
| 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, and btRigidBody::setLinearVelocity().
| 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 btTransform, btVector3, btRigidBody::getMotionState(), rot, and btMotionState::setWorldTransform().
| 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(), btRigidBody::setMassProps(), and btRigidBody::updateInertiaTensor().
Referenced by RB_body_set_collision_shape().
| void RB_body_set_restitution | ( | rbRigidBody * | object, |
| float | value ) |
Definition at line 427 of file rb_bullet_api.cpp.
| 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(), and GIMPACT_SHAPE_PROXYTYPE.
| void RB_body_set_sleep_thresh | ( | rbRigidBody * | object, |
| float | linear, | ||
| float | angular ) |
Definition at line 483 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_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(), btTransform, btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rot.
| void RB_constraint_delete | ( | rbConstraint * | con | ) |
Definition at line 1116 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 1035 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 1053 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 1071 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 966 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 983 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 1089 of file rb_bullet_api.cpp.
References rbRigidBody::body, btGeneric6DofConstraint(), btTransform, i, and make_constraint_transforms().
| 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, and make_constraint_transforms().
| 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(), and btVector3.
| 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, and make_constraint_transforms().
| void RB_constraint_set_breaking_threshold | ( | rbConstraint * | con, |
| float | threshold ) |
Definition at line 1258 of file rb_bullet_api.cpp.
References btTypedConstraint().
| 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().
| 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().
| 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().
| void RB_constraint_set_enabled | ( | rbConstraint * | con, |
| int | enabled ) |
Definition at line 1131 of file rb_bullet_api.cpp.
References btTypedConstraint(), and enabled.
| void RB_constraint_set_equilibrium_6dof_spring | ( | rbConstraint * | con | ) |
Definition at line 1211 of file rb_bullet_api.cpp.
References btGeneric6DofSpringConstraint().
| void RB_constraint_set_equilibrium_6dof_spring2 | ( | rbConstraint * | con | ) |
Definition at line 1243 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 1169 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 1176 of file rb_bullet_api.cpp.
References btGeneric6DofSpring2Constraint().
| void RB_constraint_set_limits_hinge | ( | rbConstraint * | con, |
| float | lower, | ||
| float | upper ) |
Definition at line 1138 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 1158 of file rb_bullet_api.cpp.
References btSliderConstraint().
| void RB_constraint_set_limits_slider | ( | rbConstraint * | con, |
| float | lower, | ||
| float | upper ) |
Definition at line 1150 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 1273 of file rb_bullet_api.cpp.
References btGeneric6DofConstraint().
| void RB_constraint_set_solver_iterations | ( | rbConstraint * | con, |
| int | num_solver_iterations ) |
Definition at line 1251 of file rb_bullet_api.cpp.
References btTypedConstraint().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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.
| void RB_dworld_add_constraint | ( | rbDynamicsWorld * | world, |
| rbConstraint * | con, | ||
| int | disable_collisions ) |
Definition at line 919 of file rb_bullet_api.cpp.
References btTypedConstraint(), and rbDynamicsWorld::dynamicsWorld.
| 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, and rbDynamicsWorld::pairCache.
| 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 rbDynamicsWorld::dynamicsWorld, btDefaultSerializer::getBufferPointer(), and btDefaultSerializer::getCurrentBufferSize().
Referenced by 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(), and rbDynamicsWorld::dynamicsWorld.
| rbDynamicsWorld * RB_dworld_new | ( | const float | gravity[3] | ) |
Definition at line 124 of file rb_bullet_api.cpp.
References btDiscreteDynamicsWorld(), btSequentialImpulseConstraintSolver(), rbDynamicsWorld::collisionConfiguration, rbDynamicsWorld::constraintSolver, rbDynamicsWorld::dispatcher, rbDynamicsWorld::dynamicsWorld, rbDynamicsWorld::filterCallback, btBroadphaseInterface::getOverlappingPairCache(), rbDynamicsWorld::pairCache, RB_dworld_set_gravity(), btGImpactCollisionAlgorithm::registerAlgorithm(), and btOverlappingPairCache::setOverlapFilterCallback().
| void RB_dworld_remove_body | ( | rbDynamicsWorld * | world, |
| rbRigidBody * | object ) |
Definition at line 238 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld.
| void RB_dworld_remove_constraint | ( | rbDynamicsWorld * | world, |
| rbConstraint * | con ) |
Definition at line 926 of file rb_bullet_api.cpp.
References btTypedConstraint(), and rbDynamicsWorld::dynamicsWorld.
| void RB_dworld_set_gravity | ( | rbDynamicsWorld * | world, |
| const float | g_in[3] ) |
Definition at line 172 of file rb_bullet_api.cpp.
References btVector3, and rbDynamicsWorld::dynamicsWorld.
Referenced by RB_dworld_new().
| 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, and btContactSolverInfoData::m_numIterations.
| void RB_dworld_set_split_impulse | ( | rbDynamicsWorld * | world, |
| int | split_impulse ) |
Definition at line 188 of file rb_bullet_api.cpp.
References rbDynamicsWorld::dynamicsWorld, and btContactSolverInfoData::m_splitImpulse.
| 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.
| 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 RB_shape_delete().
| float RB_shape_get_margin | ( | rbCollisionShape * | shape | ) |
Definition at line 904 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape.
| 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, x, y, and z().
| rbCollisionShape * RB_shape_new_capsule | ( | float | radius, |
| float | height ) |
Definition at line 678 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rbCollisionShape::mesh.
| rbCollisionShape * RB_shape_new_compound | ( | void | ) |
Definition at line 843 of file rb_bullet_api.cpp.
References btCompoundShape(), rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rbCollisionShape::mesh.
| rbCollisionShape * RB_shape_new_cone | ( | float | radius, |
| float | height ) |
Definition at line 688 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rbCollisionShape::mesh.
| 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, count, rbCollisionShape::cshape, rbCollisionShape::mesh, btAlignedObjectArray< T >::size(), btConvexHullComputer::vertices, and verts.
| rbCollisionShape * RB_shape_new_cylinder | ( | float | radius, |
| float | height ) |
Definition at line 698 of file rb_bullet_api.cpp.
References btVector3, rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, and rbCollisionShape::mesh.
| rbCollisionShape * RB_shape_new_gimpact_mesh | ( | rbMeshData * | mesh | ) |
Definition at line 827 of file rb_bullet_api.cpp.
References rbCollisionShape::compoundChilds, rbCollisionShape::compoundChildShapes, rbCollisionShape::cshape, rbMeshData::index_array, rbCollisionShape::mesh, and btGImpactShapeInterface::updateBound().
| 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, and rbCollisionShape::mesh.
| 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, and rbCollisionShape::mesh.
| void RB_shape_set_margin | ( | rbCollisionShape * | shape, |
| float | value ) |
Definition at line 909 of file rb_bullet_api.cpp.
References rbCollisionShape::cshape.
| 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, 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 765 of file rb_bullet_api.cpp.
References num, rbMeshData::triangles, rbTri::v0, rbTri::v1, and rbTri::v2.
| 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, rbMeshData::vertices, rbVert::x, rbVert::y, and rbVert::z.
|
static |
Definition at line 748 of file rb_bullet_api.cpp.
References rbMeshData::index_array, rbMeshData::triangles, and rbMeshData::vertices.
Referenced by RB_shape_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, rbMeshData::triangles, and rbMeshData::vertices.
| 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, rbMeshData::triangles, and rbMeshData::vertices.
| 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(), and result.