Closed PauFlorenti closed 4 months ago
Ok a couple things of feedback. Overall looks good.
API key removed and top speed increased to x3 what it previously was. I could not reproduce the airplane disappearing. Does it happen straight from the track at a distance? Or by doing a specific path or movement? Level has been added to the sampler viewer level, but I found a few issues when restarting the level after crashing the plane regarding the API Key.
@arash-sh I've found an issue working in this sample. When loading the level from the sample viewer level, the mouse is not being captured for the movement of the ship. Any leads on why the mouse is not being captured?
@arash-sh I've found an issue working in this sample. When loading the level from the sample viewer level, the mouse is not being captured for the movement of the ship. Any leads on why the mouse is not being captured?
In the SampleViewer level, the mouse is only captured when a mouse button is pressed. I think the controls should be changed in so that it behaves the same way in the standalone level. I also noticed that the SampleSelector UI is removed when the flight sim level is loaded. Is that OK @mrnelson6 ?
Other comments:
I don't know if it makes sense from the physics/realism point of view, but for me it feels more natural if the keys 'e' and 'q' only change the yaw rather than the whole rotation. Right now, for example, if the plane is tilted upwards and you hold 'e' it will end up pointing downwards. You can change this in the UpdateYaw function by using the up vector of the ENU transformation without multiplying it with the rotation of the ship mesh. But you should get the opinion of others on this as well.
In the UpdateYaw/Pitch/Roll functions, I don't think the Lerp has an effect since the alpha value is constant. You can remove the lerp and adjust the speed value instead.
I wasn't able to run the flight simulator level (without loading it through sample selector). The plane falls through the surface before the map is loaded. I think you should place the Ship_BP in the scene instead of using the game mode
When the plane crashes and the level is restarted there is a blueprint runtime error in the SampleSelector
If I remember right, this sample should use a global scene. This may cause some new problems that need to be fixed.
The ship exploding at the beginning of the level is due to the elevation being enabled in the MapComponent, so to avoid the ship crashing at the beginning I am delaying the elevation of the map for a few seconds. The ideal would be to have a way for runtimecore to tell us if the map is fully loaded and then spawn the ship and start flying. Until that is not added we will stick with this solution.
It would be nice to improve the "flight dynamics" like when you want to go right, you'll press the right key (D or Arrow Right) and the plane will yaw to the right while rolling to the right as well. When you stop pressing the right key, it would stop rolling.
Do you mean to roll and change pitch at the same time with just pressing a key? I don't think that is the way a plane should move, I believe we should give the option to roll, pitch and yaw independently. We could add another key to do both roll and pitch at the same time though
I think you should merge unless somebody else has comments. @mrnelson6 can review when he's back.
@mrnelson6 can you give this a look before we merge it?
I'm checking this PR today to see if we should close or keep it. but was not able to compile this with 1.0.0 (which is what this was built for). @PauFlorenti Do you think it's worthwhile to make this to work with the current version?
@Jade-JadeH that error is probably due to an unclean setup
@airaolagoitia I did try a clean setup by removing all unnecessary folders and the VS file
@Jade-JadeH I tested Pau's branch with 1.3. The only issues I got were:
sample_project\Source\sample_project\Routing\RouteManager.cpp
where the deprecated GetAPIkey
was being used. We need to use GetAPIKey
.both easily fixable.. I wasn't able to push the fixes probably because this is in Pau's account repo.
@airaolagoitia Ok thanks was able to get that to work, still have other two issues @PauFlorenti which is that
Other than this the sample looks great. I do think that when the speed drops the plane's falling speed needs to be faster @avr757 also the UI needs to be reworked too
Sample
Updating the Flight Simulator sample in its branch.
Summary
ArcGIS Maps SDK Version 1.0.0