Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

rotating texture

Demon Lilliehook
Registered User
Join date: 8 May 2007
Posts: 25
07-18-2007 19:22
does anyone know how to rotate a texture and make it stop itself on a given location.

ala roulette, lucky wheel, ect, ect?


regards
Cortex Draper
Registered User
Join date: 23 Aug 2005
Posts: 406
07-20-2007 03:01
For while its rotating and you dont care about its real angle, use llSetTextureAnim with the ROTATE mode parameter

For when the real rotation angle is important use llRotateTexture.

You may need to use llSetTextureAnim ROTATE while its spinning and llRotateTexture when you want it stopped at a position specified by you.
Perhaps use a timer so you can estimate where the llSetTextureAnim would take it to then finish it with the llRotateTexture for an exact position.