hi every one
I have a simple boat. I need to simulate movements with addForce / addTorque.
also how can steering of ship can be done via addForce / addTorque or any other way . i try to do something but my ship drift ...
Thank you very much.
Boat Navigation physics
You can apply the force at an offset (e.g. at the back of the boat) and directed a certain way to steer the boat.
Boats have high friction in left-right direction but low friction in forward-back direction, that's how you deal with drift.
"applying force at an offset" means you take a point-not-in-center-of-mass, and direction of force, and use them to calculate the torque and force on center, it's simple dynamics.
To make the boat go forward, you apply the force forward. To make the boat go left, you direct the force a little to the right, so that the boat turns as it goes.
Boats have high friction in left-right direction but low friction in forward-back direction, that's how you deal with drift.
"applying force at an offset" means you take a point-not-in-center-of-mass, and direction of force, and use them to calculate the torque and force on center, it's simple dynamics.
To make the boat go forward, you apply the force forward. To make the boat go left, you direct the force a little to the right, so that the boat turns as it goes.
to match a real sailing vessel, you can calculate center of effort from sails(centroid will work) and apply the force there. this will cause the vessel to heel, as well as turn. as the hull heels(rolls) and pitches the center of boyancy changes and provides force and torque as well.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement