
Welcome Guest
|
#1
|
|||
|
|||
|
cube...please help!!!!
Please bear with me. I need help with this I've been trying to do this for 2 weeks now.
Here's what I'm trying to accomplish. I have a spinning cube made w/ Eric Lin's tutorial here: (http://ericlin2.tripod.com/skew/cube3d5t.html). I have the cube rotating so that the top of the box is always showing, which is not natural (if it keeps spinning just on the y axis, when it turns 180degrees, you should be able to see the bottom). The only way I could think of accomplishing this is by constantly rotating the cube on the y and z axis with the y having a high degree rotation than z so when applied together, it seems seemless. Actionscript:
onClipEvent (enterFrame) {
if (_root.rotate) {
_root.navigation.groupRotateZ(_root.navigation.pointArray,-1.2);
_root.navigation.groupRotateY(_root.navigation.pointArray,-5);
_root.navigation.updateClip();
updateAfterEvent();Second problem, i want the cube to stop rotating when it reaches each face. Right now, i am using the setInterval to spin for 3 sec, then stop. However, depending on whether or not the computer skips when loading, the cube will not stop in the right place...I need something more concrete. I tried making an argument along the lines of if (ptA==pt on the cube when the face is where i need it to be) Last edited by Scottae : 03-05-2005 at 02:08 AM Reason: Format with AS tags |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Papervision3D cube face fullscreen | spark | ActionScript 3.0 |
0 | 11-04-2010 06:05 PM |
| 3D cube | sie975 | Newbies |
3 | 01-21-2009 02:38 AM |
| strechy cube | turkeyman | Flash MX ActionScript |
1 | 09-15-2005 09:47 AM |
| cube frustration | Katcham | Flash MX 2004 |
0 | 08-17-2005 02:01 PM |
| Cube w/ faces | artcross | Flash MX |
2 | 02-25-2005 03:52 PM |





