| 904 | } |
| 905 | |
| 906 | Vector3 GetTotalForce3D(HContext3D context, HCollisionObject3D collision_object) |
| 907 | { |
| 908 | btRigidBody* rigid_body = btRigidBody::upcast(GetCollisionObject(collision_object)); |
| 909 | if (rigid_body != 0x0 && !(rigid_body->isStaticOrKinematicObject())) |
| 910 | { |
| 911 | const btVector3& bt_total_force = rigid_body->getTotalForce(); |
| 912 | Vector3 total_force; |
| 913 | FromBt(bt_total_force, total_force, context->m_InvScale); |
| 914 | return total_force; |
| 915 | } |
| 916 | else |
| 917 | { |
| 918 | return Vector3(0.0f, 0.0f, 0.0f); |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | static Point3 GetWorldPosition(HContext3D context, btCollisionObject* collision_object) |
| 923 | { |
nothing calls this directly
no test coverage detected