I’m trying to use the SpriteSheetAnimator class with a Sprite3D, the only thing that is stopping me is the animator property of Sprite3D class that is “read-only”. Is that some kind of bug? How can I make an animated Sprite3D? I don’t want to code a sprite sheet class from scratch
SpriteSheetAnimator with Sprite3d????Software: Away3D 4.x |
||
|
||
|
||
Mario M., Newbie
Posted: 23 August 2013 12:47 PM Total Posts: 12 [ # 2 ] I’m using planes instead of Sprite3D for animated textures.
case SPRITE_AIR: Maybe you will need different angle corrections, but it’s only paying with numbers.
public static function getAngle (x1:Number, y1:Number, x2:Number, y2:Number):Number |
||
Siroko, Newbie
Posted: 25 August 2013 02:05 AM Total Posts: 6 [ # 3 ] Yes, I have been some issues using planes and refreshing the rotation because my camera has been quantized to 100 steps for the 360 degrees. But finally was my mistake, using Math.round instead of Math.ceil in one operation My approach to the rotation was quite simple :
plane.rotationX = camera.rotationX + 270; It works OK but I would try your approach on Monday Thanks! |