Starting position of physics simulated bp is different in Standalone Game
User Description:
Things work fine in the editor window, but when I run a standalone game then blueprints with physics bodies in them start in wrong locations. By wrong I mean their location vectors seem to have been scaled by two. If I disable simulation for these bodies then location is correct. This happens even with the simplest logicless Actor Blueprint with nothing but a single Collider if the Simulate Physics -box is ticked. And, just to make sure, I put one of these blueprints to (0, 0, 0) because I wanted to see what would happen. Well, it started at (0, 0, 0). Then I put one at (10, 20, -30), and it started at (20, 40, -60).
Another report:
This also seems to be a report of the same issue. The Rotation of the actor seems to have much more impact on the actors start location in Standalone Game.
This user also noticed the same results when loading between levels. It only seems to happen when starting PIE or Standalone on a level that doesn't contain the actor, then loading to a level that contains the actor.
Repro: 1
1. Open the attached test project "MyProject4"
2. PIE
3. Note the starting position of the bp is 500,0,500
4. Stop PIE
5. Play in Standalone Game
6. Note the starting position is 1000,0,1000
Results: The starting position in Standalone Game is double that or PIE and what is reflected in the editor
Expected: For the starting position to be the same in Standalone Game as in the editor
-------------------------------
Repro: 2
1. Open the attached test project "TestProject"
2. PIE
3. Notice all actors fall correctly
4. Stop PIE
5. Play in Standalone Game
6. Notice the start position of the actors are out of position
Results: The starting position in Standalone Game is drastically changed depending on how much the actor is rotated
Expected: For the starting position to be the same in Standalone Game as in the editor
-------------------------------
Repro: 3
1. Open the attached test project "TestProject"
2. In the Content Browser > ThirdPersonBP > Maps > Lload Level 2
3. PIE
4. Press the 1 key to load Level 1 that contains the actors
5. Press the 2 key to lead Level 2 again
6. Load the levels as many times as needed
Results: The starting position when loading Level 1 is drastically changed depending on how much the actor is rotated. (This does not happen if Level 1 was originally loaded and then levels are switched)
Expected: For the starting position to be the same when loading levels
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Simulation - Physics |
---|---|
Affects Versions | 4.11 |
Target Fix | 4.11 |
Created | Feb 26, 2016 |
---|---|
Resolved | Mar 7, 2016 |
Updated | Apr 27, 2018 |