| 2736 | } |
| 2737 | |
| 2738 | B3_SHARED_API int b3GetStatusBodyIndex(b3SharedMemoryStatusHandle statusHandle) |
| 2739 | { |
| 2740 | const SharedMemoryStatus* status = (const SharedMemoryStatus*)statusHandle; |
| 2741 | b3Assert(status); |
| 2742 | int bodyId = -1; |
| 2743 | |
| 2744 | if (status) |
| 2745 | { |
| 2746 | switch (status->m_type) |
| 2747 | { |
| 2748 | case CMD_URDF_LOADING_COMPLETED: |
| 2749 | { |
| 2750 | bodyId = status->m_dataStreamArguments.m_bodyUniqueId; |
| 2751 | break; |
| 2752 | } |
| 2753 | case CMD_RIGID_BODY_CREATION_COMPLETED: |
| 2754 | { |
| 2755 | bodyId = status->m_rigidBodyCreateArgs.m_bodyUniqueId; |
| 2756 | break; |
| 2757 | } |
| 2758 | case CMD_CREATE_MULTI_BODY_COMPLETED: |
| 2759 | { |
| 2760 | bodyId = status->m_dataStreamArguments.m_bodyUniqueId; |
| 2761 | break; |
| 2762 | } |
| 2763 | case CMD_LOAD_SOFT_BODY_COMPLETED: |
| 2764 | { |
| 2765 | bodyId = status->m_loadSoftBodyResultArguments.m_objectUniqueId; |
| 2766 | break; |
| 2767 | } |
| 2768 | default: |
| 2769 | { |
| 2770 | b3Assert(0); |
| 2771 | } |
| 2772 | }; |
| 2773 | } |
| 2774 | return bodyId; |
| 2775 | } |
| 2776 | |
| 2777 | B3_SHARED_API b3SharedMemoryCommandHandle b3RequestCollisionInfoCommandInit(b3PhysicsClientHandle physClient, int bodyUniqueId) |
| 2778 | { |
no outgoing calls