-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: 2D Aircraft Physics #3
Comments
Hi, I'm not sure that this system is a great fit for your game. Since it's a 2D game I assume it leans much more into the "arcade" than into "simulation". And it is then unclear if your game would benefit from the realistic simulation of aerodynamics or such simulation will actually make it less enjoyable. I think you would be better with your custom controller. However if you really want to try this project in 2D I think the simplest option is to restrict translational X axis and rotational Y and Z axes on the rigidbody (it has checkboxes for it in the inspector). Then the plane will move only in Z and Y axes and rotate only around X. |
Hey, So I've done it, and it does restrict the axis. |
So, I tried restricting rotation axis and it kind of worked. Resctriction of rotational axis broke the velocity predictor, so you'll have to disable it for this thing to behave correctly. Also note, that rotational axis restrictions are relative to the rigidbody, while position restrictions are global. Even with all that done wings seem to always stall. I would investigate further but I really think it's not a good idea to use this plane physics system in a 2D game. You are not getting anything good from it and only make the development needlessly harder. |
I did look for information online for creating 2D arcade-y like physics games, I just couldn't find anything that behaves good. I'll try investigating your code, cause it does behave nicely on 2D movement, maybe I just need to adjust some of the axis movement, thanks for everything up until now anyway, you are a genius, and you rock! |
Some quick ideas for how to make a thing that will better suit your game. Since the game is 2D I assume it's an arcady one.
|
I attempted (1) for a couple of times, no matter how much I play with the rotation, I need to add aerodynamics into it so it would be realistic enough, otherwise it looks like a space/sci-fi shooter. If I wouldn't succeed with the above, I'll attempt to go in further with your project. |
Hey,
Wow! This is an absolutely stunning library, well detailed, well defined and I was exetremely impressed with the amount of information spilled into it.
I don't have an issue, but I do have an idea. (I don't know how create a discussion or anything so I went here to issues)
I want to create a very simple aircraft physics, but in 2D, so I thought about connecting and using parts of the scripts for it.
However, I don't know how to perform a reduction on your library for it, I can try, but it will take me a lot of time.
I would like to know if you could minimize it for it? or at least guide me towards my vision?
I thought about only connecting the AeroSurface for the tail and ailerons, and removing yaw and roll (I could animate the roll easily I believe), so basically all I need is pitch movement. And I'm still clueless for the 2D aerodynamics for the plane.
What do I do with the scripts so I won't get any sudden movement on an axis that shouldn't move?
Of course, assuming the plane direction is Z and Y, The plane shouldn't change it position in X in 2D world.
Thanks,
Ori
The text was updated successfully, but these errors were encountered: