mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Update userdata stuff to how new box2d wants it
This commit is contained in:
@@ -379,7 +379,7 @@ public:
|
||||
b2BodyUserData& GetUserData();
|
||||
|
||||
/// Set the user data. Use this to store your application specific data.
|
||||
void SetUserData(b2BodyUserData& data);
|
||||
void SetUserData(void* data);
|
||||
|
||||
/// Get the parent world of this body.
|
||||
b2World* GetWorld();
|
||||
@@ -736,11 +736,6 @@ inline b2BodyUserData& b2Body::GetUserData()
|
||||
return m_userData;
|
||||
}
|
||||
|
||||
inline void b2Body::SetUserData(b2BodyUserData& userData)
|
||||
{
|
||||
m_userData = userData;
|
||||
}
|
||||
|
||||
inline void b2Body::ApplyForce(const b2Vec2& force, const b2Vec2& point, bool wake)
|
||||
{
|
||||
if (m_type != b2_dynamicBody)
|
||||
|
||||
Reference in New Issue
Block a user