In the source code, I see the function:
physconstraint.cpp
PHP Code:
IPhysicsConstraint *CreateConstraint( IPhysicsConstraintGroup *pGroup, const hl_constraint_info_t &info )
{
...
return physenv->CreateHingeConstraint( info.pObjects[0], info.pObjects[1], pGroup, m_hinge );
}
But I do not see it in IDA. And I also can not find its implementation in sdk. However, it exists and works. Is there a way to know the implementation of this function and how can I hook it?
vphysics_interface.h
PHP Code:
abstract_class IPhysicsEnvironment
{
public:
...
virtual IPhysicsConstraint *CreateHingeConstraint( IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_hingeparams_t &hinge ) = 0;
...
}