Professional :: 3D Rotation For Symbol About Y Axis Using Pivot Point
Nov 13, 2011
I am trying to rotate a symbol about the y-axis, 45 degrees one direction, then back to center, then 45 degrees the other direction. Seems like a relatively simple task, except here is what happens.
Here is the object with no rotation:
Here is the object rotated exactly 45 degrees:
And here is the object rotated exactly -45 degrees:
I need the object to rotate the same as it did the first time but in reverse, otherwise "45" and "-45" are generally worthless numbers to refer to. Is it something to do with the pivot point? I made sure the registration point was in the center when I created the symbol. It doesn't seem to be pivoting the object around the center though. How do I rotate about the y-axis using a pivot point that is actually in the center and gives the same (but opposite) effect when rotating it one way versus the other?
I am rotating some objects which their rotation (pivot) point is not at the center. My aim is to rotate from the center of the shape. How can I overcome this?
How do you determine the "rotation point" (axis?) of an object?
A sprite/movieclip that has been loaded using a Loader has its rotation point set to the upper-left corner. What I want to know if how I manually (using ActionScript) set it to the center.
I am trying to have a flashlight follow the mouse from it's pivot point. Rotating from its registration point, 180 degree rotation. Also have it move back to place if the mouse is off stage.
I am trying to rotate a symbol on the x axis mulitple times for an animation I am doing. The problem is everytime I try to do a complete rotation, the symbol rotates fine until I hit 180 degrees, but once I go past that mark, the symbol just starts rotating backwards. Is there a certain way I have to do this in order to get a complete rotation in one direction?
I have come across a large, and very annoying bug in CS5. When animating with the same symbols over a long and complicated timeline, the rotation points of symbols earlier in the timeline begin to shift around very slightly. The more you work on the flash, the more they shift, so things that you did right at the start will begin to wobble around all over the place once your timeline gets very big. This is because, as we all know, when you tamper with a tweened symbol's rotation point, the symbol moves out of place while tweening.
This has completely ruined a large project I was working on that I began in CS4.
I've got a symbol that's circular, and I'm trying to make it rotate. My problem is that everytime I rotate it (45 degrees per frame), the dimensions change slightly on me. It's a circle with a height and width of 364 pixels. After rotating it clockwise 45 degrees, the new dimensions are 386.9 by 397.4. The result is a slight pulsing as the symbol rotates when the animtaion plays. I can't figure out what's happening, and it's SUPER frustrating.
It's been a long time since I've done any work with actionscript, and alas I've forgotten nearly everything. I've tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.
Basically I'd like to do this:On the stage I have a movieclip and I'd like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.
1. When I make a symbol, I find the reference point always appear on the upper left corner, is there a way I can change the position of that?(besides use javascript?)
2. When I make a animated graphic Symbol, I drag into scene, it always repeat itself so I have to change the instance property to non-loop. Is there a preference which I can preset all the instance to non-loop?
3. if I make 2 animation character in 2 different flash file, how can I combine the 2 files but still keep the layer and key for each character?
I have a point which is setted at the border on a component, with changed transform point to the center of a component in order to match the component rotation.
the important part is when i try to get the point XY after rotation - they remains the same as before rotation.
how to get XY, after rotation ( changeing point.rotation property to specific degrees of rotaion )
I know 3D rotation is well documented on SO and many other sites, but despite reading countless explanations I still haven't figured out where I'm going wrong. My background is in art and design, not math and programming, and I'm never really certain if my angle of attack (no pun intended) is the right one. Rather than paste a patchwork of my dismal code, I'm including an image describing my problem. What I'd really like is a step-by-step worded breakdown of how to solve it. Pseudo code is useful, but I will learn more if someone will just aim me in the right direction or point out common pitfalls.
Is there a way to prevent a motion tween w/ rotation from dropping on the Y axis? Basically I used Free Transform to change the angle of a line, but it always lowers itself on the Y axis when I insert a motion tween in it.
When I try to rotate a movie clip along the x-axis on the default stage size (I'm using a basic rectangle right now), the rotation appears just as I expect it to. It "rolls over" with the perspective even on both sides of the rectangle.
When I try to duplicate this in a movie with different dimensions (320x480) and apply the 3D Rotation Tool, the rectangle skews to the left for some reason. (See attached .fla files)
I've tried changing the registration points on the movie clips, I've tried making new files with the "Adjust 3D Perspective Angle to preserve current stage projection" box checked both on and off, and I've tried repositioning the actual Rotation Tool, but I can't figure out what's wrong. Could it have something to do with the stage resizing?!
Flash knows where the anchor point is in 3D space in order for the symbol to rotate around it, but I can't seem to figure out how to see the coordinates of the anchor point or type in new ones. Please tell me how to do this. I am already very annoyed that Lynda, a pay service, doesn't think this is vital information. Apparently they think we would never want to do anything more visually stimulating than one simple spinning logo! But I digress...
Just to be clear, I know how to move the anchor point visually on the stage, but I want accuracy. I want to be able to give two symbols the exact same coordinates to rotate around.
i'm working on a flash game at the moment, and i would like to know if i am able to set the point that the movieclip rotates around using actionscript.
i don't want to do it by simply moving all of the contents of the movieclip closer or nearer. is there any other way of doing it? i couldn't find any simple functions for it. am i just going to have to use some complicated maths?
[edit] rotation point, aka, registration point.[/edit]
I am making a 'simple' template builder in flash which allows the user to add/remove text boxes and images to the stage. I can rotate any of the movieClips fine but it rotates from the top left and i want it to rotate from midpoint. Is there a way to set the midpoint/rotation point using actionscript?
I'm trying to make a MC rotate on it's axis (registration point)...I want it to rotate both clockwise and counter-clockwise at random speeds and random degrees of rotation. For example...CW fast 90 degrees...then CCW slower for 150 degrees...then CW really fast for 270 degrees...etc..etc..
I have the following problem. I have an MovieClip in a holder MC. I would like to turn the inner MC X with 'rotation' parameter, and still keep it in the holder mc to the right and bottom of the holder MC reference point. So after turning it should look like thatanyone can tell me how to do that? Basically a function that takes any X rotated in any degrees through X.rotation = ... and puts it back in place in the holder MC.
Has anyone got a bit of code I can use to change the center point DisplayObjects rotate around in a 3D space? I need it to work with rotationX, rotationY and rotationZ. I know theres a workaround of wrapping every object in aother sprite and offsetting the x & y positions but I'd much prefer a math solution. As an example of the problem, this code should make a star shape:
I'm attempting to write a racing game. I've loaded in my image, I brought it to the stage and now, all I want to do is rotate it from its' center and not upper left corner.
The code:
racer.rotation += 5;
rotates from the upper left corner. How do I rotate from the center of the car/sprite? I've tried putting it into a container but I'm unsure on the coordinates of the container because I tried to set the x,y coordinates to half the sprite image but y'know, it's not doing what I expect it to.
ActionScript Code: if (arrowLeft) { var container:Sprite = new Sprite();
[Code]....
I will never sneer at another racing game! I didn't think it would be this hard to do a simple rotate of an image!
greetings, first of all sorry for my english. This question will probably looks more difficult than it is.
I have movieclip which I want to rotate around internal point few angles with click on certain button, and I manage to do it, but I want to see motion, or even put ease not only to immediately pop up in the place.