FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   Resetting multiple objects rotations
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Resetting multiple objects rotations  (Read 407 times)
self_titled

WWW Email
Resetting multiple objects rotations
« on: Dec 21st, 2004, 7:14am »

I'm building an app which the user draws on the screen and can rotate the lines in-between drawing to form a 3d object/sculpture.  
 
Is there a way to reset each line's rotation back to zero without actually rotating the lines back so I can calculate the rotations easily when the mouse is dragged?
 

John Iacoviello | Self Titled
Ethan

thanton3 WWW
Re: Resetting multiple objects rotations
« Reply #1 on: Dec 21st, 2004, 10:21pm »

Can you create a line object, with a property "angle" and a method reset() ?
 
self_titled

WWW Email
Re: Resetting multiple objects rotations
« Reply #2 on: Dec 22nd, 2004, 12:45am »

Each line currently has an angle property but having a reset() method wouldn't work since I need the lines to appear to have not moved but their rotations in the stack be reset to zero.
 
When there's multiple lines and some have been rotated over 180 degrees those lines don't rotate the way the eye would like because their orientation is pointing in a different direction.
 
Does anyone know if this is possible?
« Last Edit: Dec 23rd, 2004, 12:09pm by self_titled »  

John Iacoviello | Self Titled
Pages: 1 

« Previous topic | Next topic »