Verified Commit 515c48d3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: expose the two signatures for getContacts

parent 79e7f99c
Pipeline #13373 passed with stage
in 54 minutes and 19 seconds
......@@ -160,7 +160,10 @@ void exposeCollisionAPI ()
.DEF_CLASS_FUNC (CollisionResult, addContact)
.DEF_CLASS_FUNC (CollisionResult, clear)
.DEF_CLASS_FUNC2 (CollisionResult, getContact , return_value_policy<copy_const_reference>())
.DEF_CLASS_FUNC2 (CollisionResult, getContacts, return_internal_reference<>())
.def(dv::member_func("getContacts",static_cast<void (CollisionResult::*)(std::vector<Contact> &) const>(&CollisionResult::getContacts)))
.def("getContacts",static_cast<const std::vector<Contact> & (CollisionResult::*)() const>(&CollisionResult::getContacts),
doxygen::member_func_doc(static_cast<const std::vector<Contact> & (CollisionResult::*)() const>(&CollisionResult::getContacts)),
return_internal_reference<>())
.DEF_RW_CLASS_ATTRIB(CollisionResult, distance_lower_bound)
;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment