• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GML Antenna physics


I am new to the world of physics; I am wondering where to start to get a car antenna physics done in GML? any help would be appreciated
It'll be similar to what I did to make cloth physics. You would use physics for elasticity. F = mx is your friend, or in this case F =m (theta) the force on nodes of the antenna will increase the more it deviates from the idle position. Wind would apply a force in one direction and the force will counter it to restore balance. It builds up movement so it overcompensates giving it a wobble. The main difference between cloth and this is that the force depends on how bent the antenna is, not how much it is stretched. You would just have to update all the variables in the step event, then draw using lines or a sprite in the draw event.