Hello everyone,
I'm trying to complete my first scripting project which is an analog clock. I've got rotation working on the two clock hands by making an invisible prim as a pivot which contains the rotation script and linking it with the arm so that it rotates correctly. I've worked out the time and the arms use timers every 10 seconds for the hour and every second for the minute hands. The problem I'm facing now is that when I try and link the clock face with the two clock arms, my pivots are no longer the root prims and so they keep rotating but the arms stay static. I'm not sure how if there's a solution to this while still retaining my current rotation script. Someone suggested making a clock hand texture that was a disk but completely transparent but for the clock hand. And then using LLTargetOmega to rotate that from the base prim. I can go and implement this, will probably be a less resource hungary solution but out of interest I'd like to know if you can rotate one object around another even if they're not the base root of the object.
Regards
Flea Cure
I've attached an image of me proudly showing off my clock in Cordova sandbox.