Put these in parts\scripts\bodypart\src. If you want to use these for your own projects, please try and make a subclass of each type that "extends" the classes used here, instead of just copying and pasting the code.

This is an update to the version originally distributed in .class form with the Fiero. Because I reworked the animation code, this will probably mean that some old mods might stop working (but shouldn't crash).

As a compatibility patch for older mods, you can insert this line into the top of the updatelightslotpos() method:
anim_ori = new Ypr(0, current_pos_rads, 0);

Download the current version here or from the sidebar.


If for whatever reason you need the source code for the old version, it's available here.
 
No comments yet