#pragma once
/*
	This is the implementation of a very simple ball and socket joint, created as a custom joint, to demonstrate how to use the
	custom joint interface in OgreNewt.
*/

#include <OgreNewt.h>


class MyCustomBallSocket : public OgreNewt::BallAndSocket
{
public:

	// constructor - should be implemented by the user.
	MyCustomBallSocket( OgreNewt::Body* child, OgreNewt::Body* parent, Ogre::Vector3 point);

	~MyCustomBallSocket();

	// also user MUST implement this function to actually apply the constraint.
	virtual void submitConstraint(Ogre::Real timestep, int threadindex);
};

