Prevent objects from colliding with own child attachments (#7610)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 5 Aug 2018 20:28:41 +0000 (22:28 +0200)
committerParamat <paramat@users.noreply.github.com>
Sun, 5 Aug 2018 20:28:41 +0000 (21:28 +0100)
commitee63b94f2c9e176f549c4446391e4c59f5a5be53
tree767f643bf1849b521646ed0ca41c323efd384a7a
parent88efebdf864baeb422cbe4d992a44ff7c99373fb
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.
src/clientobject.h
src/collision.cpp
src/content_cao.h
src/content_sao.cpp
src/content_sao.h
src/serverobject.h