- Home /
What would be a good physics model model for 2d ship?
I currently use drag, angular drag, AddForce and AddTorque. Whatever values I assign it doesn't move very realistic, is there anything I should use to improve my model?
Unfortunately there's not enough information to work with. I see no code, so I can't say anything about the expected behavior of your current attemp, and I can't really know what "doesn't move realistic" means to you to offer much beyond a chapter in a book on the subject of making boats move on water.
Can you say, for example, what is the difference between what you see and what you want to happen? Quite often in even professional games (some which claim 'genuine' physics models) are really about fudged results. We generally just get things to "look about right" and leave it at that, because these aren't really scientific or engineering quality simulations being built.
Right, furthermore do we actually talk about ships (you know, the ones floating on water) or some kind of space ship? Since it's 2d, do we talk about top down or side scrolling? Finally questions that ask what for some sort of ranking (what is the best ..., what would be a good ...) generally lead to opinion based answers which do not belong here.
To get any further help this question needs some heavy improvements. Realism comes in many flavors. For example i really like the behaviour of space ships in SpaceEngineers when you turn of the inertia dampers. However even the game aims for more realism there are countless things which just aren't. The way inertia dampers work just makes no sense. They are just there to improve the game experience and controls. Also all objects (including players) have a max velocity they can move at. This is soley for stability. Planets don't rotate ins$$anonymous$$d the sun rotates around everything else. Thrusters can be placed off-center / asymetrical and you still get a clean push without torque. Without that designing space ships would be extremely difficult as the placement of the thrusters would be really important.
Why I, of all people (fan of Trek, Star Wars, that recent Lost In Space reboot) didn't think about space ships, I just can't even begin to explain. I probably need more coffee ;)
Answer by basit_mangat · Aug 07, 2018 at 06:48 AM
This is because .you have not use the built in functions of unity for smooth and realistic rotation,movement and scaling etc. - Lerp - smoothDamp - slerp Try to study these built in functions and then use it in your code.it will add smoothness and realistic movement can be seen.For Example
transform.positin=Vector3.lerp(start,end,t); it will move my object from start to end in time t with smooth movementt+=Time.deltaTime/time;
Your answer
Follow this Question
Related Questions
Moving a rigidbody onto exact mouse position using rigidbody.MovePosition? 1 Answer
Making a physics based game run faster 0 Answers
How do drag and angular drag interact? 2 Answers
Changing rigidbody drag based on deviation of rigidbody heading to its direction 2 Answers
Can I Prevent Rigidbody Drag from Affecting the Z-Axis? 2 Answers