gary Posted January 30, 2020 Posted January 30, 2020 Does UNIGINE has something similar to UE4's spring arm functionality?
werner.poetzelberger Posted January 30, 2020 Posted January 30, 2020 (edited) This is just a camera attached to something with kind of logic? Shouldnt be that hard to reproduce. But, yes, sometimes some 'ready-mades' would come in handy. ;) (like for none programmers like me) Edited January 30, 2020 by werner.poetzelberger
silent Posted January 31, 2020 Posted January 31, 2020 gary There is no built-in object like this in UNIGINE. I guess (as Werner already mentioned) it should be possible to implement by coding the custom player behavior. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
myavatargotsnowedon Posted September 15, 2020 Posted September 15, 2020 Here's a way I managed a spring arm in C#. [ShowInEditor] Node camera, springStart, springEnd; private void Update() { var from = springStart.WorldPosition; var to = springEnd.WorldPosition; WorldIntersection raycast = new WorldIntersection(); World.GetIntersection(from, to, 1, raycast); if(raycast.Surface < 0){ camera.Position = springEnd.Position; } else{ camera.WorldPosition = raycast.Point; } }
Recommended Posts