AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Lock camera 3rd person view

Open niknil702 opened this issue 8 years ago • 4 comments

Is it possible to lock the 3rd person view of the quadcopter (i.e. have a static view from behind which follows when the quadcopter rotates)?

I have tried to edit parameters in settings.json but have not managed to achieve what I'm after.

niknil702 avatar May 03 '18 10:05 niknil702

May be SpringArmChase works for you.

https://github.com/Microsoft/AirSim/blob/master/docs/settings.md#viewmode

sytelus avatar May 03 '18 23:05 sytelus

I'm also interested in this feature. I see that using SpringArmChase camera is always on the same position (it follows the drone but keep always it initial direction), so it doesn't rotate with drone, what seems to be a bit uncomfortable. Is there any way to set the camera always behind the drone (so rotating with it)??

Domi47 avatar May 07 '18 08:05 Domi47

I would suggest to look in here and try setting different properties on spring arm: https://github.com/Microsoft/AirSim/blob/c122d2efc746857c4cc1c503584a0981a6b14cf7/Unreal/Environments/Blocks/Plugins/AirSim/Source/CameraDirector.cpp#L10

Here's good doc on how to use spring arm: https://docs.unrealengine.com/en-us/Gameplay/HowTo/UsingCameras/SpringArmComponents

sytelus avatar May 08 '18 23:05 sytelus

Too late, but unreal cine camera is also worth checking out. https://docs.unrealengine.com/en-us/Engine/Sequencer/HowTo/CineCameraActors

madratman avatar Feb 19 '19 20:02 madratman