Hopefully resolved bug that caused ships with subentities exploding inside closed structures. Test will be required to confirm that I have not broken anything else.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2290 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
0a97d1b193
commit
d2eb33aee8
@ -1069,10 +1069,10 @@ ShipEntity* doOctreesCollide(ShipEntity* prime, ShipEntity* other)
|
||||
Octree *prime_octree = prime->octree;
|
||||
Octree *other_octree = other->octree;
|
||||
|
||||
Vector other_position = [prime absolutePositionForSubentity];
|
||||
Triangle other_ijk = [prime absoluteIJKForSubentity];
|
||||
Vector prime_position = [other absolutePositionForSubentity];
|
||||
Triangle prime_ijk = [other absoluteIJKForSubentity];
|
||||
Vector prime_position = [prime absolutePositionForSubentity];
|
||||
Triangle prime_ijk = [prime absoluteIJKForSubentity];
|
||||
Vector other_position = [other absolutePositionForSubentity];
|
||||
Triangle other_ijk = [other absoluteIJKForSubentity];
|
||||
|
||||
Vector relative_position_of_other = resolveVectorInIJK(vector_between(prime_position, other_position), prime_ijk);
|
||||
Triangle relative_ijk_of_other;
|
||||
|
Loading…
x
Reference in New Issue
Block a user