Rope Simulation Library A Zedd Library Alex Marcolina Omnimaga.org Builderboy2005@yahoo.com This is the Rope simulation library, compatable with the Zedd physics solver. This library allows you to simulate a rope attatched to an object, with tension and elasticity. The rope library is simple to implement, merely include the program after the Zedd library in your main program. Use the following commands to interact with the library: Command Description ----------------------------------------------------------------------------- LoadR(r1,r2,r3,r4) Loads the library to simulate a rope of r1 pixels. One end of the rope is fixed to object index r2, the other end is fixed to point r3,r4 SimR() Simulates one frame of the Rope simulation; can be done most places in the program loop, but directly after or before the Zedd update is recomended. LocR(r1,r2) Sets the anchor of the rope to location r1,r2 LenR(r1) Sets the length of the rope to length r1 ------------------------------------------------------------------------------ You also need to assign the constant address for the Rope library to use as its global data. In the start of your program when you define all the other constants, merely include the following constant: Address->GDB2OB The rope library will use 8 bytes of memory at this address for its global data.