Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Boat Navigation physics

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Vastark   Members   

106
Like
0Likes
Like

Posted 22 July 2012 - 12:06 PM

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.

Edited by Vastark, 23 July 2012 - 04:37 AM.


#2 Zondartul   Members   

290
Like
0Likes
Like

Posted 04 August 2012 - 01:48 AM

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.

Edited by Zondartul, 04 August 2012 - 01:49 AM.


#3 Burnt_Fyr   Members   

1664
Like
1Likes
Like

Posted 19 August 2012 - 01:27 PM

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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.