载入中...
搜索中...
未找到
World3DContacts.cpp
浏览该文件的文档.
26 if (bodyId <= 0) throw eve::Exception("World3D.queryBodyContacts: bodyId must be a positive stable id");
32 if (!result) throw eve::Exception("World3D.queryBodyContacts: %s", result.status().describe().c_str());
37eve::Result<BodyContacts3D> World3D::queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const {
42const World3D::ContactEvent &World3D::contactEventAt(const std::vector<ContactEvent> &events, int index,
49const World3D::TriggerEvent &World3D::triggerEventAt(const std::vector<TriggerEvent> &events, int index,
62const World3D::JointStressEvent &World3D::jointStressEventAt(int index, const char *operation) const {
148const World3D::ContactPointResult &World3D::contactPointAt(int index, const char *operation) const {
#define EV_CONTACT_POINT_INT_GETTER(name, member)
Definition World3DContacts.cpp:154
#define EV_CONTACT_POINT_FLOAT_GETTER(name, member)
Definition World3DContacts.cpp:165
#define EV_JOINT_STRESS_INT_GETTER(name, member)
Definition World3DContacts.cpp:130
#define EV_JOINT_STRESS_FLOAT_GETTER(name, member)
Definition World3DContacts.cpp:138
eve::Result< BodyContacts3D > queryBodyContactsOwned(PhysicsBodyHandle body, int maxPoints) const
Reads bounded contact data without changing the legacy query cache.
Definition World3DContacts.cpp:37
int queryBodyContacts(int bodyId, int maxPoints)
Compatibility cache adapter over queryBodyContactsOwned for script callers. Results are oriented from...
Definition World3DContacts.cpp:24
Body3D * findBodyById(int bodyId) const
Borrows a live body by stable event/query id; never delete lookup results.
Definition World3D.cpp:439
void clearContactEvents()
Clears all contact and trigger buffers before the next step.
Definition World3DContacts.cpp:14
bool isContactPointPersisted(int index) const
Whether this manifold point existed in the previous step.
Definition World3DContacts.cpp:181
Begin/end event for two non-sensor shapes.
Definition World3D.h:57