How not to rotate relative to the object?

hi,
currently i am rotating transformgroups like this:
       Transform3D currenttrans = new Transform3D();
       objTrans.getTransform(currenttrans);
       Vector3f currentVector = new Vector3f();
       currenttrans.get(currentVector);
       currenttrans.setTranslation(new Vector3f(0,0,0));
       objTrans.setTransform(currenttrans);
       Transform3D rotateclockwise = new Transform3D();
       rotateclockwise.rotX(-Math.PI/10);
       currenttrans.mul(rotateclockwise);
       currenttrans.setTranslation(currentVector);
       objTrans.setTransform(currenttrans);But that does not feel right. It always rotates relative to the object. But I want to rotate it relative to the universe (or to my view).
That means I for example: I want to be able to rotate the object like a head that looks to the right, no matter what its current state is. This means in my example: If the "head" is currently "looking down" then it should still look down at the same angle after I rotated it to the right.
I hope u understand (its hard to explain without pictures).

To find where any node is relative to the rest of the universe you can use it's getLocalToVworld method. That should save you a bit of extraneous calculation at least.

Similar Messages

  • How not to get back on the page i just closed when opening a new session

    How not to get back on the page i just closed
    when opening a new session?
    I do have a live stream radio on now...
    Therefor new session might not be the complete truth.
    Gerard

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to to find out if the objects used "Registration" color or not?

    Is it possible to find out if the objects used "Registration" color or not via scripting? Kindly advise me.
    Thanks for looking into this.

    Hi,
    May be you might read this post
    http://forums.adobe.com/thread/623432?tstart=0
    ciao , art.chrome

  • PR05 - How to activate a Function in the Object Services Toolbox

    Hi,
    How do I activate a function in the Object Services Toolbox?
    In transaction PR05 (Travel Expense Manager) select any trip and then click on 'Change'. This takes you to the screen for the individual trip.
    On the top left of the screen is the 'Object Services Toolbox'.
    If I drop down on this list then select 'Create' there are 5 options under 'Create' i.e. 'Create attachment', Create Note', 'Create External Document', 'Store Bus. Doc', and 'Enter Bar Code'.
    The 'Enter Bar Code' is deactivated. I would like to know how to activate this.
    Thank you.
    Warren.

    no idea

  • How to activate a function in the Object Services Toolbox of PR05

    Hi,
    In transaction PR05 (Travel Expense Manager) select any trip and then click on 'Change'. This takes you to the screen for the individual trip.
    On the top left of the screen is the 'Object Services Toolbox'.
    If I drop down on this list then select 'Create' there are 5 options under 'Create' i.e. 'Create attachment', Create Note', 'Create External Document', 'Store Bus. Doc', and 'Enter Bar Code'.
    The 'Enter Bar Code' is deactivated. I would like to know how to activate this.
    Thank you.
    Warren.

    I think you need to check for IMG transaction code OAC5 & OAC3 and also check IMG configuration setting under
    Application server-->basis services > Archive Link> customizing incoming documents--> bar code scenarios

  • How and when does oracle changes the object status on a view?

    I have HR schema and AWARD schema. AWARD schema has views referencing the base tables in HR. Whenever I refresh HR the dependant views on AWARD becomes invalid. I recompile those views after the refresh.
    Could anyone explain the internals of this object status change process? How does my AWARD schema sense the invalid status? Why it is not re-establishing the status after the data import?

    I refresh HR test instance from production. If you are not so sure about this process...here is what happens ....export production HR schema, drop all the objects from HR test and import the production data into HR test.
    I am not worried about what is happening but would like to understand the internal process (beyond the basics).

  • How to add an variable to the object name of the arraylist

    Greetings,
    i will like to create an object for arraylist with it name concat with a variable. This is what i mean as show below.
    for i=1; i <8; i++)
    ArrayList list = new ArrayList();
    What i want when it loops, the arrayliost will auto create list1, list 2, list3 and so on until the for loops end. How do i add the variable i to the object name list?
    Thanks

    Do anyone of u mind if let me know hows the code look like?This isn't intended to be an alternative to the previous reply: in fact it's worthless unless you read the information in the link given.
    import java.util.ArrayList;
    import java.util.InputMismatchException;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    public class ListListEg {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Random random = new Random();
                // create the mainList outside the for loop
            List<List<Integer>> mainList = new ArrayList<List<Integer>>();
            System.out.print("How many lists would you like? ");
            try {
                int num = in.nextInt();
                if(num <= 0) {
                    System.out.println("Smartass!");
                    System.exit(1);
                    // populate the main list inside the loop
                for(int i = 0; i < num; i++) {
                    mainList.add(new ArrayList<Integer>());
            } catch(InputMismatchException ime) {
                System.out.println("Idiot!");
                System.exit(1);
                // later do stuff with the lists, which you access with get()
            for(int i = 0; i < mainList.size(); i++) {
                for(int times = 0; times < 3; times++) {
                    mainList.get(i).add(random.nextInt());
            System.out.println("The first list is " + mainList.get(0));
            if(mainList.size() > 1) {
                System.out.println("The second list is " + mainList.get(1));
            System.out.println("The last list is " + mainList.get(mainList.size() - 1));
    }(In reality all the action would not take place in one method like this, and the exception handling would be more useful and polite.)

  • How can I add hyperlink to the object in iCloud pages ?

    Hi, there
    I want to add hyperlink to the object(image) in icloud pages.
    But it looks no such function on  icloud(any "add link" botton)
    I know that how to add hyperlint to the object in pages v5.2.
    1. place object
    2. prepare text box and add hyperlink to the text(invisible color)
    3. overlay object and textbox
    But, in icloud pages, I coundln't do above method.
    Pls give me some advice.
    Thanks.

    The feature to add images in tables is gone, ike about another 90 features that exists in Pages 09.

  • How not to see password in the script?

    Hi all,
    11.2.0.1
    Aix 6.1 5L
    I have a script expdp01.sh
    Which contains:
    expdp system/$1 schemas=HR
    Then I can run the script at  $ expdp01.sh  hrpass
    This is done so that the password will not be hard-coded in the script. Is this a good idea?
    Is there a way to hide the input parameter?
    Thanks a lot,
    zxy

    yxes2013 wrote:
    Hi all,
    11.2.0.1
    Aix 6.1 5L
    I have a script expdp01.sh
    Which contains:
    expdp system/$1 schemas=HR
    Then I can run the script at  $ expdp01.sh  hrpass
    This is done so that the password will not be hard-coded in the script. Is this a good idea?
    Is there a way to hide the input parameter?
    Thanks a lot,
    zxy
    How is this question different from the one you asked two weeks ago?  ==> How not to see database password?

  • I am so frustrated.  I put ab object and/or a text box on a page and then cannot select it - the Text cursor (not pointer) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing,

    I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot.  I know it must be something system wide as it happens in apps other than Pages.

    I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot.  I know it must be something system wide as it happens in apps other than Pages.

  • How do I find out all the objects I use in my application.

    As I am creating my documentation, I realized it would be helpful to know all the objects that my application uses ( tables, views, packages etc). Is there a way to find that out i.e. any script or simple alternative etc ?
    Thanks, folks!

    I am on version 3.0.1.00.08 and am trying to figure this out for this version.The navigation path is different but the report is available somewhere.
    Also, is there a way to get the sql from all the pages out ?What do you mean?
    Scott

  • How can HitTestObject can trigger around the Object and not the rectangle of selection of the object ?

    Hi !
    I am doing a little mini-game but i have a problem with HitTestObject and his hitbox
    Look at those images :
    Here HitTestOject == 1 but it should be i want HitTestOject to react like this :
    This is weird because for me the wall is well cropped, because if i select a space near the rectangle it doesn't trigger it.
    Thanks !

    http://www.mikechambers.com/blog/2009/06/24/using-bitmapdata-hittest-for-collision-detecti on/

  • How to present a relational table os object

    I have tables that came from Progress. The convert process converted their columns of type array to individual columns in oracle. Their data server copes with this, but I have been asked if it is possible to see a more familiar view for other uses.
    EG. I now have...(only 1 row shown)
    Table
    =====
    col1 (number) (unique column) = 1
    col2 varchar(10) = 'fred'
    col3 varchar(10) = 'sometext'
    col4##1 varchar(10) = 'tom'
    col4##2 varchar(10) = 'dick'
    col4##3 varchar(10) = 'harry'
    col5 varchar(10) = 'sometext2'
    col6 varchar(10) = 'sometext3'
    col7##1 number = 7
    col7##2 number = 14
    col7##3 number = 21
    What do I need to do/setup to be able to query - preferably by an updateable view - the data, so that a query something like
    "select col1,col2,col3,col4[2],col5,col6,col7[3] from table where col1 = 1;" would return a result of
    1 fred sometext dick sometext2 sometext3 21
    or
    "select col1,col2,col3,col4[1],col4[2],col5,col6 from table where col1 = 1;" results in
    1 fred sometext tom dick sometext2 sometext3
    The array sizes are known and rarely if ever changed.
    Any help appreciated. Version 8.1.7.4 on HPUX 11 64bit

    Oops - the select would be against a VIEW (or object table?) and not the relational table, obviously.
    What do I need to do/setup to be able to query - preferably by an updateable view - the data, so that a query something like
    "select col1,col2,col3,col4[2],col5,col6,col7[3] from VIEW where col1 = 1;" would return a result of
    1 fred sometext dick sometext2 sometext3 21
    or
    "select col1,col2,col3,col4[1],col4[2],col5,col6 from VIEW where col1 = 1;" results in
    1 fred sometext tom dick sometext2 sometext3

  • How to find who has deleted the objects in 10g

    All,
    On 10th feb i have created a sequence (M_KEY_SEQ) as per my user request.
    But i could not find the sequence in the database now, Could any one please tell me
    how to find out ..who has dropped the sequence, (looks like some drop actions has been carried out from my user side, we suspect those drop jobs might dropped this sequence but we dont have correct information about who has dropped it..so we cant tell them that you have dropped).
    Any suggestions please...
    No auditing enabled in our database.

    If you dont mind ..could you please explain me how to use DBMS_LOGMINER to find out the deleted sequences

  • How separate and rotate pieces of an object in preparation for creation of a GIF in After Affects?

    Here is the image that I'm working with...
    I want to make this object rotate a tight 90 degrees in After Effects and then separate. If you're wondering why I put this up under Photoshop it is because I need to have this model in addition to 2 others, one of the top half and one of the bottom half and button, both turned 90 degrees [preferably clockwise] in order to create the GIF. I need these 3 pieces before I can even consider creating the GIF in After Effects... so if somebody either wants to try and do it for me or to try and help me to do it on my own, either one would be extremely helpful

    Don't worry guys, I actually found the answer all on my own what I needed was to separate the image into 3 files, something I was probably going to do anyways to make exporting and importing the images easier and rotating the two top and bottom half images here's what I have right now (per background removal)Thanks for trying to help... but I think I'm ready to move on to After effects with this one The reason I'm moving it to after effects is simply because I understand simple movement/animation there already... if you're curious as to what I plan on doing with these images, the complete ball will sit in a hole in my border, turn a sharp 90 degrees right and then be replaced by the two half images, the bottom one will fade slowly out while the top is lifted off screen to the right... it's a fancy reveal for my upcoming project thanks again

Maybe you are looking for