Transformgroups position in the virtual world.

Hi,
I need to know if its possible to get a transformGroups position in the virtual world.
Lets say transformGroupGETPOSITIONIS the child of transformGroupA, and transformGroupA is a child of transformGroupB. Now if transformGroupA and transformGroupA are rotating and moving all over the place, transformGroupGETPOSITIONIS posiiton will change in the virtual world, but because transformGroupGETPOSITIONIS never moves or rotates, will it know thats it's moving and have some values that represent it's position the the virtual world?
Any help is appricated.
ps, if the transformgorup dosn't know it's position in the virtual world, i have to go off and learn about 3d matrix's, and lets say your studing maths in college, you don't study this until semester 2 of year 2. So it's going to be kinda hard..... anyway again, any help will do.
thanks

Hi, ya i got it after so if anybodys looking for the solution to this question, here it is :
private Vector3d ReturnTransformGroupsVirtualWorldPosition(TransformGroup inputTransformGroup)
     Transform3D oldPositiont3d = new Transform3D();
     inputTransformGroup.getLocalToVworld(oldPositiont3d);
          Vector3d getPosition = new Vector3d();
          oldPositiont3d.get(getPosition);
          return getPosition;
just throw in your transformGroup and it will return back your Virtual world position.

Similar Messages

  • 4 random positions in the world

    Ok so this is the code that i have writen so far:
    Random aRandom;
    aRandom.nextBoolean();
    aRandom.nextInt(4);
    System.out.println(aRandom);
    if (aRandom == 0)
    chaser.moveTo(160,120);
    if (aRandom == 1)
    chaser.moveTo(160,360);
    if (aRandom == 2)
    chaser.moveTo(480,120);
    if (aRandom == 3)
    chaser.moveTo(480,360);
    this is what the outcome is supposed to be :
    Chaser is created at one of 4 positions in the
    world: (160, 120), (160, 360), (480, 120), or (480, 360). You must use a random decision to choose
    which of the four locations Chaser should start at.
    im really new to this does anyone khow what im doing wrong?
    below is the starter code that i have just in case anyo0ne wants to take a look at it!
    // Fall 2008 Comp 110 Barnes Project 2
    // Put descriptive comments about what your program does and how it does it
    import java.util.Random; // used for making probabistic decision
    // You must use the methods and the arguemtns in this starter file.
    public class TurtleTag {
    // class instance variables are declared outside of any class method
    // and are accessible from anywhere within the class.
    Random aRandom; // object that returns (gets) random values
    Turtle chaser, evader; // Turtle "objects" of our game
    int delayInterval = 750; // time delay between steps to see the chase
    int chaserStep = 5, evaderStep = 8; // distance of turtle's step
    // Constructor method -- makes a TurtleTag object.
    public TurtleTag(World aWorld, int gameSteps) {
    int chaseX = 160, chaseY = 120; // starting location for chaser turtle
    // create a new Random
    // create a new evader Turtle and give it a name
    // set the value of steps here
    evader = new Turtle(aWorld);
    evader.setName("evator");
    // determine where chaser turtle will start
    Random aRandom;
    aRandom.nextBoolean();
    aRandom.nextInt(4);
    System.out.println(aRandom);
    if (aRandom == 0)
    chaser.moveTo(160,120);
    if (aRandom == 1)
    chaser.moveTo(160,360);
    if (aRandom == 2)
    chaser.moveTo(480,120);
    if (aRandom == 3)
    chaser.moveTo(480,360);
    // create chaser turtle and give it a name.
    chaser = new Turtle(chaseX, chaseY, aWorld);
    chaser.setName("chaser");
    System.out.println("TurtleTag written by " + "Antonio Arana");
    System.out.println(chaser);
    System.out.println(evader);
    System.out.println("Chaser is after Evader.");
    // call the play() method to have chaser chase evader
    play(gameSteps);
    System.out.println("TurtleTag is done");
    } // end of TurtleTag(...)
    // Wait delayInterval milliseconds between steps.
    // Do not change this method or its call in play.
    // This method is needed for moving Turtles.
    private void delay() {
    try { Thread.sleep(delayInterval); }
    catch (InterruptedException ie) {
    System.out.println("Error in delay() " + ie.toString());}
    } // end of delay()
    // Write the definition (body) for this method.
    public void chaserMove() {
    // Put your code here
    // Write the definition (body) for this method.
    public void evaderMove(boolean decision) {
    // Put your code here
    // Uncomment the declaration of this method.
    // Write the definition (body) for this method.
    // public int distanceBetween(Turtle chase, Turtle evade) {
    // Put your code here
    // Play the game of tag between two turtles for steps moves.
    // Complete the definition (body) for this method.
    public void play(int steps) {
    // you may have to define and possibly initialize
    // some local variables here
    // get positions of chaser and evader turtles
    // while not tagged and moves is less than steps) do
    // moves++;
    // chaserMove();
    // distance = distanceBetween("what arguments go here?");
    // if ( distance <= 10) {
    // System.out.println("Game over Chaser tagged Evader in " +
    // moves + " steps at a distance of " + distance );
    // tagged = true; }
    // else // evader moves
    // evaderMove(aRandom.nextBoolean());
    // delay(); // pause between moves
    // end of while
    // if (!tagged) System.out.println("Game over Chaser did not tag Evader in "
    // + moves + " steps");
    } // end of playTag()
    } // end of TurtleTag class definition

    should i use the aRandom.nextInt(max) intead i am so confused right now i wish i could just give up but i have to do this even if it takes me all week!
    I am really new to this and the teacher that i have never answer our questions. the book that we read for this class desent even teach us how to do randoms sorry that im writing this im just really sick of this because i have been trying to figure this out from yesterday to today and this is just the begining.
    Bye the way i really apreciate your help even though i think that i am geting more confused.
    so what i have so far is totaly wrong right?

  • How can I follow slurl's which are web short cuts into secondlife virtual world environment keeps telling me no association present and not available to be associated in the options/applications list

    Secondlife.com has a system to access their world straight into their virtual world environment called "slurls" which can be used on any webpage. It appears that in IE this system works correctly, but not in Firefox.
    See: http://slurl.com/about.php
    Just keeps telling me that no association is available, but there is nothing in the options/applications list to create this association with as "secondlife" protocol is not listed so cannot connect it to the phoenix viewer I use for access to this virtual world grid
    With over 1.3 million users of this world it is not an insignificant facility to be missing.

    To use servlets u have indeed to update your web.xml...Well I'm not sure this is relevant to your case anyway.
    You have to add a <servlet> element to this file.
    Something like this:
    <servlet>
    <servlet-name>blabla</servlet-name>
    <servlet-class>blablapackage.Blablaclass</servlet-class>
    <init-param>...</init-param>
    </servlet>
    Now this may not solve your problem. Make sure you refer to your servlets using their full qualified names.btw, just to be sure, what is your definition of "servlet"? (i mean: any java class or only javax.servlet.Servlet)

  • Looking for Game Developers/Producers and Virtual World Developers for Adobe Research Study

    The Adobe User Research Team is interested in talking to game developers/producers and virtual world developers to better understand the development process, the tools/technologies used, and the development/business challenges.  Your insights will help us improve our platform and tools as well as develop new solutions.  You do not need to be Flash developers to participate.
    The research study will be a 2-hour one-on-one phone interview.  As a token of appreciation, interview participants will receive a $150 American Express Gift Check.
    If this sounds like something you might be interested in, please fill out our short preliminary screener here:
    http://www.adobe.com/go/gamedevscreener
    If the study is a good match, we will contact you by phone or email to schedule a time.
    If you have any questions, please feel free to contact me at [email protected]
    Thank you for your interest!
    Sara Kang
    Adobe Market Research

    FYI, this is a poorly worded set of possible answers:
    8. How much experience do you have using the following technologies?
    I’ve never heard of that technology
    I’ve investigated that technology but never used it professionally
    I’ve spent some time working with that technology
    I am comfortable using that technology
    I have used that technology on a daily basis for less than 1 year
    I have used that technology on a daily basis for more than 1 year
    For a number of these technologies, I've heard of them but have not been inclined to investigate, which seems like it would be useful info to Adobe.

  • Plz rewrite the virtual machine

    I've been using Flash for about 10 years since version 3 and through all those years have been a faithful developer and supporter. I started as a newb and have advanced to being able to create advanced object oriented architectures in Flash. I've noticed that over the years that new features have been continuously added to the Flash player however the underlying architecture is holding it back from obtaining greater speed (higher framerates). Recently with new products that may compete with Flash such as Objective C for the iPhone, Unity3D and Khronos and Mozilla (For those who do not know, Khronos group brought to the world OpenGL, OpenCL Collada, OpenSL ES, OpenGL ES, etc.) As I've become a better developer and programmer I've felt the actual need for more speed from the Flash player. The Flash player has gotten faster compared to the old days of actionscript 2 by providing more subtle control over the code in actionscript 3 (though I think the garbage collection still needs to provide the developer the option to do it themselves) the speed increase is still not enough and I strongly believe that the virtual machine should be rewritten to support maximum speed than minimum file size (or perhaps provide the option to developers). I know I'm asking for a lot, however the future of Flash could be on the line, when you think about the strong competition that's coming in.

    I've been using Flash for about 10 years since version 3 and through all those years have been a faithful developer and supporter. I started as a newb and have advanced to being able to create advanced object oriented architectures in Flash. I've noticed that over the years that new features have been continuously added to the Flash player however the underlying architecture is holding it back from obtaining greater speed (higher framerates). Recently with new products that may compete with Flash such as Objective C for the iPhone, Unity3D and Khronos and Mozilla (For those who do not know, Khronos group brought to the world OpenGL, OpenCL Collada, OpenSL ES, OpenGL ES, etc.) As I've become a better developer and programmer I've felt the actual need for more speed from the Flash player. The Flash player has gotten faster compared to the old days of actionscript 2 by providing more subtle control over the code in actionscript 3 (though I think the garbage collection still needs to provide the developer the option to do it themselves) the speed increase is still not enough and I strongly believe that the virtual machine should be rewritten to support maximum speed than minimum file size (or perhaps provide the option to developers). I know I'm asking for a lot, however the future of Flash could be on the line, when you think about the strong competition that's coming in.

  • IT Guy wants to jump in to the Mac world

    I have been in the IT field for over ten years now and currently hold the position of Network Manager at the company where I work.  Although I have had five iPods and three iPhones over the course of my life, I have never owned or used a Mac computer, not because I have anything against them, just that I've always used and supported PCs. I recently saw and fell in love with the new retina display Mac Books and thought that maybe now was a good time to jump in to the Mac world.  Since funds are limited at home I thought I'd see about replacing my PC at work with a new Mac. My main concern besides having to get used to a new OS is that I won't be able to use the necessary tools to do my job in the Windows world where I work. We are in a Windows 2008 R2 domain and use Exchange Server 2010 for e-mail and I have to manage and administer this environment on a daily basis. I have read that going with either Parallels Desktop or VMware Fusion was the way to go if you want to just virtualize Windows 7 on your Mac but I am wondering if that's the only way to use the domain admin tools that I require. Are there any such tools available for the Mac or am I just going to have to run everything in the VM?  I am also wondering if there are any other hurdles that I should be aware of when using a Mac in a Windows environment.
    Thanks in advance for your input.
    -Chris

    If they will let you, sure, go for it.  But it just seems to me there is a big difference between an end user using an Apple device on a Windows-based network domain, and an admin having to administer that network/domains windows hardware.
    One thing you can do, if funds allow, is set up a second monitor with your Mac.  You can keep the Windows VM running in one and have the other as your OS X desktop, instead of switching back and forth between them.  I used to do that with my Mac Pro at my previous job (I only needed windows to occasionally trouble shoot a user's issue with Windows-only software applications, or to test open source apps to write documentation for them).
    Also, if going the VM route, do not skimp on RAM.  OS X 10.8 is okay with 4GB (but for many uses, more would be better), plus you will have the overhead of the VM, and then Windows itself will need RAM for itself.  These days, I would say if running both systems all the time, 8GB would be the minimum I'd want, and I would prefer 12-16GB (but that is based on the kind of use I see - bioinformatics and data analyses), so I could have a 6-8GB Windows 64-bit installation.
    A 16GB iMac with an external monitor would make a good such machine at a reasonable price point, to my mind - add another 25-27" monitor and you would have a nice dual mode setup.
    However, at my current place of employment, I don't get the option of picking my own hardware - I miss that freedom.

  • Window to Virtual World Coords

    I'm new to j3d and java in general. I've got an application that creates objects in a SimpleUniverse and then navigates around them using my own behavior similar to OrbitBehavior.
    I need to be able to take some given display window coordinates (like the center of the window, regardless of its current size) and compute where those window coords intersect a plane in virtual space where my object lives. I know how to get the window size and do the math, but I need to somehow obtain the transform(s) that convert from virtual world coords to display window coords. I've looked through the j3d tutorial and API spec, but couldn't find what I think I'm looking for.
    Can anybody tell me how to obtain the necessary transform(s)?
    Contrary to what's listed in my profile, my email is [email protected]

    I've never done that... But maybe there's something in the Locale object of the Universe you can use...

  • Why is the virtual keyboard on my new iPad showing up in the middle of the page instead of the bottom? It sometimes covers the area I'm trying to type in!

    Why is the virtual keyboard on my new iPad showing up in the middle of the page instead of the bottom? It sometimes covers the area I'm trying to type in!

    Tap and hold on the keyboard icon in the lower right corner of the keyboard. Select Dock and it will return to its normal position. You can turn off undocking and splitting of the keyboard at
    Settings > Keyboard

  • The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my doc

    The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my dock has resided at the right margin so all my slider manipulation over countless editing sessions in Aperture has been ingrained to work at the left margin -- but, the vast majority of the time, the HUD overlaps the image I am editing in this 'unlocked' mode. 
    Every occasionally I enter Full Screen View and it positions on the left margin *without* superimposition...(!) My great joy is modulated into aggravation, however, should my tracking cursor drift all the way 'out of bounds' -- to call in the hidden pane of adjacent images sequenced in the library... This dramatically shrinks the Full Screen display and re-locks the HUD; if I toggle the switch to re-xpand the image it re-positions at the right margin!!!!  I SOOoooooo wish I knew how to control the default 'locked' margin of the HUD in Full Screen View...

    Drag it over to the Left. Then lock it there.

  • Why doesn't the virtual keyboard work with firefox on my dell venue 8 pro windows 8.1 tablet?

    When I try to enter text in any text-entry box, i.e, in the url , search, or on a website, the virtual keyboard doesn't activate. I have to manually activate and deactivate it. It works for Google Chrome, but sadly not for firefox, my preferred browser. The tablet is up-to-date with the latest drivers and updates.

    Thanks for the reply. No, it's the virtual keyboard that is integrated into window 8.1. I haven't installed any 3rd party keyboards

  • When playing games on facebook, I often get the message "virtual memory too low, is being increased" Is there something I can do to clean out the "virtual memory" to avoid this?

    As mentioned in my question above, it happens usually during playing games. I wondered if there were someway to clean out the virtual memory, as opposed to it "increasing" continually and overloading my memory in general. You are speaking with a computer novice for the most part, so I am unfamiliar with a lot. I do do updates and general maintenance on the computer, but is that enough for this issue?

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r45
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Physical memory is the memory that is installed on your computer as real memory. To be able to run programs that require more memory and more programs at the same time (via time sharing and task switching) it is also possible to move (swap) currently not needed code and data to disk to make room for other programs and data. The total memory available for programs is the Virtual Memory.
    You can check the Virtual Memory settings here: Control Panel > System > Advanced > Performance > Settings (Advanced tab)<br />
    Windows can manage more memory then is physical available and that memory is stored in a page file on your hard drive.
    If the size of that file is not large enough and all available memory is in use then you get the Virtual Memory is low warning.
    Make sure that you have at least 1 GB or the recommended setting for the Virtual Memory.
    If you have less than 1 GB physical memory installed on your computer then if possible add more memory.
    http://support.microsoft.com/kb/555223 - RAM, Virtual Memory, Pagefile and all that stuff

  • New to the manufacturing world?  Here's a resource that might help...

    I've noticed that there are lot of MII implementors who are unfamiliar with the terminology, systems, and processes in the manufacturing world.  I would definitely recommend obtaining this book and reading it from cover to cover!
    http://www.evolvedtechnologist.com/section/books/in-pursuit-perfect-plant-a-business-and-technical-guide
    It is written in a format that presents a manufacturing company from many perspectives : planning, operations, maintenance, and others.  While an expert might find it somewhat redundant, I think that many of the less experienced MII consultants would derive great value from it.

    [APICS|http://www.apics.org/default.htm], although not as popular as they once were, offers some education and certification (ie, CPIM).  One of the courses "Basics of Supply Chain Management", which is available in [book form|http://www.apics.org/APICS/Bookstore/ProductDetail.aspx?CS_ProductID=4186&CS_Category=&CS_Catalog=APICS+Bookstore] is also a good start.

  • The position of the worker, from which table can I get?

    Hi,
    Whether a person with a given pernr, how can I know whether he is a manager or an employee etc.
    Which table and which field of this table.
    Thanks.

    Hi,
    To get the position for a person you need to go to table PA0001 table (PLANS field).
    Once you get the position, to check whether that position is Manager's position
    You need to go to table HRP1001 and check whether is there any entry exist for the position with relationship 'B002' (SUBTY field), if entry exists then the position is manager's position. The all the entries in SOBID fields are subordinate position to the managers position.
    Hope this helps,
    Shrinivas

  • I am trying to finish a book in InDesign CS2 with another person. My old XP computer became unstable and I had to get a Windows 7 computer. I was able to install CS2 on the Virtual XP Machine on my Windows 7 computer, but I cannot register or activate it.

    I am trying to finish a book in InDesign CS2 with another person. My old XP computer became unstable and I had to get a Windows 7 computer. I was able to install CS2 on the Virtual XP Machine on my Windows 7 computer, but I cannot register or activate it. Adobe no longer supports activation. Is there a way I can keep using CS2? I need to get files back and forth to my coauthor. I also have CS6. I understand that files can go form 2 to 6, but not backwards. Thanks Robert

    you can download a new installer and serial number from Adobe at Adobe - CS2 Downloads

  • Front camera of my iPhone 4 doesn't work, the virtual cover doesn't open.

    Yesterday I have bought an used iPhone 4, so I don't have any guarantee. But the front camera doesn't work, the virtual cover doesn't open. I have read that it is something like a hardware fault. Now my question is, if Apple has to repair it because of the hardware fault?

    they dont do repairs..is much easier for them to give u new handset..which u have to pay for if is out of warranty.
    dont be affraid is not a full cost of handset.is be about £139.00-£169.00
    i use to work as an technician engineer in a phone shop still have access to warehouse with replacement parts.
    if u live in UK and willing to pay £50 i can repair it for u.i'm still cheaper than apple store

Maybe you are looking for

  • Adobe media encoder in PP CS3

    Hi there I'm using Premiere Pro CS3, when I try to launch Adobe media encoder or Matrox media encoder, the program bugs. Any help? I'm very new in this field. Thanx

  • How to implement role control in my WebDynpro application?

    Hi,     I am new to WebDynpro development. And now I create a simple application PMS which uses the WebDynpro Client for client page, Mysql and iBatis for database layer.     Now, I want to add role to my application to control the user accessing iVi

  • Character to uni-code manipulation

    I'm trying to take a character to uni-code and perform some manipulations, however I am having problems converting uni-code back into a string. I've found the GetNumeric Value but cannot find the corresponding method to convert it back. public static

  • IChat no longer works - "The application iChat quit unexpectedly" (Tiger)

    Hi, I'm running iChat (3.1.8) on Tiger (10.4.10). iChat was working fine until yesterday, when I could no longer use it due to the fact that every time I tried opening it, it would just crash instantly, giving me the popup message, "The application i

  • Can't login after upgrade to 10.6.8

    Hi I am stuck in a login loop after upgrading from 10.6.4 to 10.6.8, the Login window accepts the password, the screen clears and after a short delay the login window reappears. Some background info: this is a 2010 iMac 21.5" I have replaced a failed