Results 1 to 2 of 2
  1. #1
    Himanshu23 is offline Member
    Join Date
    Nov 2010
    Posts
    9
    Rep Power
    0

    Lightbulb java 3D mouse Rotation

    hi
    i am making a game in java 3d similar to counter strike,i need to rotate the map with the movement of mouse.The center of rotation should be always at 0 coordinate.the whole map is a transform group and it rotates about its center.But want to rotate about the 0 coordinate.how can i do it for mouse moved.
    thank u.

  2. #2
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    Try to make an SSCEE (Small Self Contained Compiling Example), showing what you have until now, and post that.
    I just helped another guy, Move objects(sphere) by click on buttons(right,left,top,bottom) using java3d, what he posted is almost a SSCEE, you can also experiment with that (the ball is rotated by the mouse, try to make it rotate at any location (what it does by the way)).
    Then explain what you didn't get working.
    Last edited by Jodokus; 07-04-2011 at 09:45 PM. Reason: spelling
    No bug ever had to calculate its fitnessfunction.

Similar Threads

  1. Java or Excel? Lifeguard rotation
    By ThePwnageKing in forum New To Java
    Replies: 3
    Last Post: 05-18-2011, 06:59 AM
  2. Java - Image Rotation - How to use this code?
    By cvillejin in forum New To Java
    Replies: 1
    Last Post: 04-03-2011, 07:38 PM
  3. StringList rotation
    By aquafoam in forum New To Java
    Replies: 1
    Last Post: 04-20-2010, 08:02 AM
  4. Mouse Listener for mouse floating over object?
    By Krooger in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2009, 04:34 AM
  5. Rotation in java 3D
    By émilie- in forum Java Applets
    Replies: 0
    Last Post: 02-13-2008, 10:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •