神刀安全网

Sailboat simulation in WebGL (2D Wireframe)

Controls: q and w keys to turn the rudder. o and p to turn the sail. This is a very rough similation of the forces that make a sail boat move. You will have ‘wind’ coming from random directions. You can control the rudder and the sail using the keyboard. The force vectors that act on the boat is shown in the box to the right. The red vector is the force on the sails. The yellow vector is the reactive force from the keels and the green vector is the resulting force that moves the boat. So you want some combination of boat and sail orientation so that the green vector points somewhere in the direction you want to go. If the boat crosses the purple lines, it’s position will be reset.

Sail angle: 0 Keel angle: 0 Rudder angle: 0 Number of wind particles:

Randomize wind

Created by Sandeep

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Sailboat simulation in WebGL (2D Wireframe)

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮