mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 02:05:30 +01:00
Prevent objects from colliding with own child attachments (#7610)
Also, use a better distance calculation for 'collide with objects'. Fixes the issue of a vehicle occasionally colliding with its own driver, causing one of the velocity components to be set to zero.
This commit is contained in:
@@ -139,8 +139,6 @@ public:
|
||||
|
||||
void processInitData(const std::string &data);
|
||||
|
||||
ClientActiveObject *getParent() const;
|
||||
|
||||
bool getCollisionBox(aabb3f *toset) const;
|
||||
|
||||
bool collideWithObjects() const;
|
||||
@@ -181,6 +179,8 @@ public:
|
||||
|
||||
void setChildrenVisible(bool toset);
|
||||
|
||||
ClientActiveObject *getParent() const;
|
||||
|
||||
void setAttachments();
|
||||
|
||||
void removeFromScene(bool permanent);
|
||||
|
||||
Reference in New Issue
Block a user