Jump to content

Rotateable image.


photo

Recommended Posts

Use WidgetSprite GUI object functionality setImage()/setTransform(). See documentation Programming\Unigine Script Library\GUI-Related Classes\WidgetSprite for details. Also have a look into sample widgets_xx (relevant code in folder data\samples\widgets\sprite_00/01.cpp)

Link to comment

I miss setTransform somehow, thx.

But there is no rotation in that tutorials and I can't make it work using rotateZ.

I make

setTransform(rotateZ(10*engine.game.getTime()));

and instead of normal rotating it's like image wants rotating in 3d(?!).

post-150-0-98226000-1292179138_thumb.jpg

Link to comment
  • 2 weeks later...
×
×
  • Create New...