{"repo":"GatitoMimoso00/3D-Fighting-Camera","free":true,"listed":false,"github":"https://github.com/GatitoMimoso00/3D-Fighting-Camera","clone":"git clone https://github.com/GatitoMimoso00/3D-Fighting-Camera.git","description":"Script and Mathematical operations involved on how this Camera works. Plugin for Godot","language":"GDScript","stars":32,"topics":["3d-space","fighting-game","godot","godot-engine","matrices","vectors","3d-camera","camera","plugin"],"license":"MIT","category":"game-templates","readme_excerpt":"3D Fighting Camera Camera that supports 3 axis of momevement like Tekken, Soul Calibur games or 3D Mortal Komabt era. Forwards and backwards, Side Step in and out; and Cross-up/under handling. Script and Mathematical operations involved on how this Camera works. Video Preview https://www.youtube.com/watch?v=GTq9b1KvTkE https://www.youtube.com/watch?v=1z2FMZxIdek Mathematical explanation Naive approach Seen from above. We can just create a 2D vector between PJ1 and PJ2 ( Vector PJ ), wich sense goes from PJ1 to PJ2; and then creata a perpendicular 2D Vector ( Perp Vector PJ ) that intersectes in the mid point ( MidPoint PJ ) and take the angle between these vectors to assign it to the camera rotation and from there set the camera position. Problem is, Perp Vector PJ has fixed sense, given by Vector PJ , causing the camera to always having the PJ1 on the Left Side and the PJ2 on the Right Side, even on cross-ups , cross-unders or just punctual collision issues where PJs pass each other trough. We can see that, no matter what, PJ1 is always clockwise acording to Perp Vector PJ . New approach Create a new 2D Vector parallel to Perp Vector PJ ( Cam Virtual Direction ), it represents the previous Perp Vector PJ ; this new vector will be used to create another 2D Vector ( Vectorial Proj ) wich is the result of projecting Cam Virtual Direction onto Perp Vector PJ . Cam Virtual Direction: is a vector that represents the direction of the Perp Vector PJ , but not its sense is not used. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/GatitoMimoso00","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GatitoMimoso00/3D-Fighting-Camera/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}