Moving dummycharacter collider to cursor pos in the editor (-> dropped items are positioned correctly)

This commit is contained in:
Regalis
2016-11-10 17:21:30 +02:00
parent 50a770a2a6
commit 4bb8531775
@@ -845,6 +845,7 @@ namespace Barotrauma
{ {
limb.body.SetTransform(mouseSimPos, 0.0f); limb.body.SetTransform(mouseSimPos, 0.0f);
} }
dummyCharacter.AnimController.Collider.SetTransform(mouseSimPos, 0.0f);
} }
dummyCharacter.ControlLocalPlayer((float)deltaTime, cam, false); dummyCharacter.ControlLocalPlayer((float)deltaTime, cam, false);