Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation Around the Geometric Center in a Script

Jason Ayakashi
Registered User
Join date: 15 Nov 2006
Posts: 11
04-18-2007 09:45
I'd like to rotate a multi-prim object around its geometric center in a script. So far, I've been able to use llSetRot to rotate around the root prim. Any suggestions on how to rotate around the center of the object proper?

Thanks.
Jason
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
hmmmmm
04-18-2007 15:42
It is possible to script objects to rotate around any point. Search here and the wiki for details.

So, define what you mean by "the center" and then start your engines.
Mimo Vacano
Registered User
Join date: 27 Dec 2006
Posts: 54
04-25-2007 07:19
You could also add a small, invisible prim as your root that you actively place at the geometric center of the piece - or wherever you want the center of your rotation to be.

Of course - there's also llGetGeometricCenter()
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
04-25-2007 09:14
I know that llLookAt rotates an object around its geometric center even if it in non-physical. I have never used llRotLookAt, but it may do this as well.