Can Orbit use Keyboard instead of mouse

I've created a custome behavior to cotroll the camera through the arrow keys. I want it to rotate about the orgin while always looking at the orgin. What i've gotten is whatever is at the orgin is rotating. I want the object to stay at the orgin and the camera float around it always facing it. I've noticed there is an Orbit behavior that uses the mouse. Is there a way for it to use the keyboard instead. if not any ideas on how to get my custom behavior to do it? I can email my code if needed.
Thanks,
James

Hi,
To rotate at the origin (around teh object).
First you have to get the TransformGroup of the Viewplatform.
- TransformGroup cameraTG = su.getViewingPlatform
).getViewPlatformTransform();
-The transfomrGroup 'cameraTg' is a 4x4 matrix. If you want to rotate around the object you must get the 3x3 matrix (orietation)of camerTG.
[x x x .]
[x x x .]
[x x x .]
- and the get this portion (position of the camera]
[ . . . x]
[ . . . x]
[ . . . x]
of the matrix
Check out some code:
public void rotY(float angle) (ORIETATION OF THE CAMERA)
targetTG.getTransform(transform3D);
Matrix3f rotationMatrix = new Matrix3f();
transform3D.getRotationScale(rotationMatrix);
//Rotate y-as with a specified angle
rotationMatrix.rotY(angle);
transform3D.set(rotationMatrix);
public void positionCamera(Vector3f position)(POSITION OF THE CAMERA)
targetTG.getTransform(transform3D);
Transform3D toMove = new Transform3D();
toMove.setTranslation(position);
transform3D.mul(toMove);
targetTG.setTransform(transform3D);

Similar Messages

  • 2011 MBP can't use keyboard or trackpad or external devices following installation of usb prober.

    First, I was having trouble with a USB mouse, so I went looking for information about troubleshooting that.
    Someone suggested installing USB Prober, which I found and attempted to install.
    The installation asked for a restart, so I restarted.
    At login screen, I can't use keyboard, mouse (trackpad), or any USB devices.
    I'm able to use key combinations at the beginning of boot, so I reset PRAM and NVRAM or whatever they are.
    I was able to use key combinations to boot into my Windows partition, and into single-user mode, and into safe mode, and verbose mode.
    --Using the Windows partition appears to be useless for fixing the Mac problems, as far as I can see, since I can't modify the filesystem that way.
    --In single-user and safe modes, I still can't use the keyboard or mouse.
    I found this discussion:
    https://discussions.apple.com/thread/4021048?start=0&tstart=0
    But that discussion reached no conclusion, and as I said, I tried that one user's suggestion already.
    Super frustrated; please be charitable and save my sorry butt.
    regards,
    herpaferpaderp..afjppr-alurp

    No; no no; I don't need the developer forum--I'm not trying to use USB Prober. For all I care, I don't need the USB ports right now. Forget them and the stupid tool, and being unable to use the stupid tool.
    I just want to be able to use the keyboard and trackpad, as I was able to before installing the stupid tool.
    If you can, help me make everything the way it was before the developer tool. Without going to 781 forums in 36 languages and as many hours. My brain is puny and will implode.

  • HT2534 can you use paypal instead of credit card for iTunes

    just got an Ipad & am trying to download apps but can't as I need to give credit card details.  Can you use paypal instead of credit card?

    Sad but true, I've tried to pay for iTunes Match with my credit and couldn't because it's a subscription service, regardless the credit amount I have. The system ask me to pay with my credit card too.
    How are Family Sharing purchases billed?
    When you initiate a new purchase, it will be billed directly to the family organizer's account, unless you have gift or store credit. First, your store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer. iTunes Store credit on your account isn't shared with other family members. So if the family organizer has a $50 credit on their account and another family member initiates a purchase, it won't deduct from the organizer's iTunes Store credit, but will bill the organizer's credit or debit card.
    How iTunes Store purchases are billed

  • HT204053 can i use paypal instead of credit card

    Can i use paypal instead of credit card

    http://www.apple.com/legal/itunes/appstore/qa/terms.html#SALE
    PAYMENTS, TAXES, AND REFUND POLICY
       The Mac App Store, App Store and iBookstore services (the "Stores") accept credit cards issued by banks in Qatar or Content Codes as forms of payment.
    To use the iTunes Store in a country you need a credit card (or other card type if acceptable in a country) issued in that country, billed to an address in that country, and also be physically present in that country when using the store.

  • HT4848 can i use Dvd  instead of USB , as a recovery disk

    can i use DVd instead of Usb as a recover disk

    How , can i  ???
    Recovery Disk Assistent is not recognizing the DVD, its only recognizing DVDs

  • HT5132 can i use iCloud instead of MobileMe?

    can i use iCloud instead of MobileMe?

    iCloud can be used to sync your documents between iCloud-ready applications to your mobile devices, but you cannot use it to host web galleries. For this you will need to find a different host, for example the ftp-site of your internet provider. Export your web galleries to your hard drive and upload them to your new web host using ftp (I use Cyber Duck for this).
    See Roger Wilmut's page (the last line on the page addresses links to photo galleries):
    Migrating from Mobile Me:
    http://www.wilmut.webspace.virginmedia.com/notes/migrate/frommobileme3.html
    And if you need a replacement for your iDisk, see this user tip by Winston Churchill:
    Winston Churchill: Using iCloud as an iDisk:
    https://discussions.apple.com/docs/DOC-2711
    If you create your web pages with iWeb, you can still use the iWeb application, but you need to patch it a little, because iWeb references icons (arrows) on MobileMe, that may not longer exist: See this guide by Old Toad and Roddy, on how to do this:
    Modify the iWeb Application: http://oldtoadstutorials.net/No.26.html
    Regards
    Léonie

  • Can I use SQLJ instead of JSP ?

    Hi:
    Can I use SQLJ instead of JSP to work with Oracle Mobile / Wireless ?
    Thanks

    You can use any language that can output XML - There is a Tag Glossary for the Oracle9iAS Wireless XML on http://studio.oraclemobile.com .
    Regards,
    Kalle
    [email protected]
    Hi:
    Can I use SQLJ instead of JSP to work with Oracle Mobile / Wireless ?
    Thanks

  • Can I use speakers instead of headphones with my iPod shuffle?

    How can I use speakers instead of headphones or earbuds with my iPod Shuffle?

    Yes, as long as they are self-powered (don't need an amplifier) and connect using the same type of standard "mini-stereo" connector that is on headphones. 

  • Can we use EDID4 instead of EDIDD for generating IDOC

    Hi Abap-Experts,
                           My question is can we use EDID4 instead of EDIDD for generating IDOC. I have declared internal table for idoc data using EDIDD...but can i use instead EDID4 for the same as well as in FM('MASTER_IDOC_DISTRIBUTE'). I have tried to use but it was giving me runtime error
       DATA : ls_edidd  TYPE edidd .
      DATA : it_edidd TYPE TABLE OF edidd .
    LOOP AT it_cust INTO wa_cust .
        lv_segnum = lv_segnum + 1 .
        ls_edidd-segnum = lv_segnum .
        ls_edidd-segnam = 'Z1ZZ_CUST' .
        ls_edidd-hlevel = '1' .
        ls_edidd-sdata = wa_cust .
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control                  = ls_edidc
      OBJ_TYPE                             = ''
      CHNUM                                = ''
        TABLES
          communication_idoc_control           = it_edidc
          master_idoc_data                     = it_edidd
    Thanks in advance,

    Hi Alexander,
             I am not getting any error when i try EDIDD for generating IDOC..but if i try EDID4........it does give me error message.
               so please tell me what is the solution for this.

  • Flash player on the new mac sarafi can't use keyboard and event listener

    flash player on the new mac sarafi can't use keyboard and event listener
    cn:英文有些差不好意思,附上中文说明:在flash player web 开发时,我在最新版本的sarafi上,目前出现不能响应键盘事件bug,为了验证是不是我本地问题,我也用在多款别的网页游戏上进行测试,全有这个bug,另外,有时还有那个fp弹出本地 缓存提示设置窗口也点不了“允许或拒绝“那些按钮

    Now after 5 weeks, you have always not resolved this very important and urgent issue. It seems that Adobe has realy abandonned the actionscript / flash player projects. Why not simply discontinue flash player on desktops too ? Or even better remove or block "automaticaly" all flash players with the final update. That could create a serious issue on the Internet for few weeks but at least that will be honorable end like a Samurai's Seppuku...

  • Can I use my apple wireless mouse and keyboard with my Mac Mini and Windows PC?

    Hello, I recently dug up a windows PC computer for side projects, and I was able to get by using my wireless apple keyboard and mouse for my Mac mini, and then using a usb mouse for my PC, I want to eliminate the usb keyboard and mouse and just use the bluetooth keyboard. Both computers are usually on all the time, and the windows PC uses a bluetooth adapter. I can get my keyboard and mouse to work on both, but I have to sync them to whatever system I would like everytime I want to use it. Is there any solution that when I choose the Mac Mini my keyboard and mouse will work for the Mac mini, and when I choose my windows pc, the keyboard will only be used on windows without having to resync?

    To my knowledge, no.
    Barry

  • Can we use keyboard and mouse together with Ipad3

    Actually i have ipad3. i want use it like a laptop. can u guide me that can we use the keyboard and mouse both together with Ipad..... kindly reply at the earliest....

    An iPad doesn't support the use of a mouse. Is your keyboard Bluetooth - if it is then you should be able to pair to it via Settings > Bluetooth

  • Can I use my iMac's mouse and keyboard on Target mode with my MacBookPro?

    I have my MacBookPro conencted to my iMac via ThunderBolt Cable.
    I want to be able to put my MacBookPro aside and use my iMac's mouse and keyboard.
    Is this possible?

    You'd have to switch the connections after enabling. It's not something I've tried so I don't know if your MBP will
    'see' them when they're already connected to your iMac. Worth a try though.

  • [PROBLEM SOLVED] After last update, Can't use keyboard in Xorg

    Apparently the last system upgrade installed "xf86-input-keyboard-1.3.2-1-i686" but I reverted back to "xf86-input-keyboard-1.3.1-1-i686" and everything is working again.
    Lesson learned: put all xorg related packages to hold because my geforce2 mx440 won't need updates.
    This is just frustrating. After doing a system upgrade (which upgraded xorg to version 1.5) I can't use the keyboard anymore. In fact, my screen would freeze also, as long as I was using the latest Xorg version. This machine's card is a geforce2 mx440.
    So I downgraded xorg-server with pacman -Rd xorg-server and pacman -U /var/cache/pacman/pkg/xorg-server-yadayada1.4yadayada; Fine, I can use the mouse and open X just as normal as before. BUT the keyboard seems helpless.
    xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Tue Jan 22 19:53:46 PST                                                                               2008
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings:  version 1.0  (buildd@vernadsky)  Tue Mar  4 20:24:34 UTC 200                                                                              8
    #150708
    Section "Screen"
            Identifier      "Screen0"
            Device          "Videocard0"
            Monitor         "Monitor0"
            Option          "TwinView"      "0"
            Option          "TwinViewXineramaInfoOrder"     "CRT-0"
            Option          "metamodes"     "1024x768_85 +0+0; 1280x1024 +0+0; 1152x                                                                              864_75 +0+0; 800x600_100 +0+0; 640x480_100 +0+0"
            Option          "DisableGLXRootClipping"        "True"
            Option          "AddARGBGLXVisuals"             "True"
            SubSection "Display"
                    #Virtual        1280    1024
                    Virtual 1024    768
                    Depth   24
                    Modes           "1024x768@85"   "1152x864@75"   "1280x1024@60" "                                                                              800x600@100"    "640x480@100"
            EndSubSection
            Defaultdepth    24
    EndSection
    Section "Screen"
            Identifier      "screen1"
            Device          "device1"
            Monitor         "monitor1"
            SubSection "Display"
                    Depth   24
                    Modes           "1024x768@85"
    #Modes           "640x480@60"
            EndSubSection
            Option          "AddARGBGLXVisuals"     "True"
            #Option                 "AllowGLXWithComposite" "True"
            Defaultdepth    24
    EndSection
    Section "Device"
            Identifier      "Device0"
            Driver          "nvidia"
            Vendorname      "NVIDIA Corporation"
    EndSection
    Section "Device"
            Identifier      "Videocard0"
            Driver          "nvidia"
            Vendorname      "NVIDIA"
            Boardname       "NVIDIA GeForce2 Integrated (generic)"
            Busid           "PCI:1:0:0"
            Screen  0
            Option          "RenderAccel" "true"
    EndSection
    Section "Device"
            Identifier      "device1"
            Driver          "nvidia"
            Vendorname      "NVIDIA"
            Boardname       "NVIDIA GeForce2 Integrated (generic)"
            Busid           "PCI:1:0:0"
            Screen  1
    EndSection
    Section "InputDevice"
            # generated from default
            Identifier      "Mouse0"
            Driver          "mouse"
            Option          "Protocol"      "auto"
            Option          "Device"        "/dev/psaux"
            Option          "Emulate3Buttons"       "no"
            Option          "ZAxisMapping"  "4 5"
    EndSection
    Section "InputDevice"
            # generated from default
            Identifier      "Keyboard0"
            Driver          "kbd" #"keyboard"
            Option          "XkbLayout"   "br"
            Option          "XkbModel"    "abnt2"
    EndSection
    Section "ServerLayout"
            Identifier      "Layout0"
      screen 0 "Screen0" 0 0
            Inputdevice     "Keyboard0"     "CoreKeyboard"
            Inputdevice     "Mouse0"        "CorePointer"
    EndSection
    Section "Module"
            Load            "extmod"
    #       Load            "type1"
            Load            "freetype"
            Load            "GLX"
    #       Load            "v4l"
    EndSection
    Section "Monitor"
            Identifier      "Monitor0"
            Vendorname      "Samsung"
            Modelname       "Samsung SyncMaster 753DF(X)/703DF(X)/783DF(X)/CD173A(T)                                                                              "
            Horizsync       30.0    -       71.0
            Vertrefresh     50.0    -       160.0
            Gamma   1
      modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
      modeline  "640x480@72" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
      modeline  "640x480@75" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
      modeline  "640x480@85" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
      modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
      modeline  "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
      modeline  "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
      modeline  "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
      modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
      modeline  "832x624@75" 57.3 832 864 928 1152 624 625 628 667 -hsync -vsync
      modeline  "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
      modeline  "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
      modeline  "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
      modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
      modeline  "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync                                                                               interlace
      modeline  "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsyn                                                                              c
      modeline  "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsyn                                                                              c
      modeline  "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync                                                                               +vsync
      modeline  "1400x1050@60" 122.6 1400 1488 1640 1880 1050 1051 1054 1087 -hsync                                                                               +vsync
    EndSection
    Section "Monitor"
            Identifier      "monitor1"
            Vendorname      "Plug 'n' Play"
            Modelname       "Plug 'n' Play"
            Gamma   1
      modeline  "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
      #modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    EndSection
    Section "Extensions"
            Option          "Composite"     "Enable"
            Option          "NoPM"          "True"
    EndSection
    #Section "Files"
    #       Rgbpath         "/usr/X11R6/lib/X11/rgb"
    #       EndSection
    pacman -Q |grep -ir "xorg"
    xorg-apps 1.0.3-3
    xorg-font-utils 1.0.3-3
    xorg-fonts-100dpi 1.0.1-1
    xorg-fonts-75dpi 1.0.1-2
    xorg-fonts-alias 1.0.1-1
    xorg-fonts-encodings 1.0.2-2
    xorg-fonts-misc 1.0.0-3
    xorg-res-utils 1.0.3-2
    xorg-server 1.4.2-1
    xorg-server-utils 7.3-1
    xorg-twm 1.0.4-2
    xorg-utils 7.3-1
    xorg-xauth 1.0.3-1
    xorg-xinit 1.1.1-1
    xorg-xkb-utils 7.3-1
    Xorg.0.log:
    (II) NVIDIA(0): Initialized GART.
    (II) NVIDIA(0): Setting mode "1024x768_85+0+0"
    (II) Loading extension NV-GLX
    (II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
    (II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
    (==) NVIDIA(0): Backing store disabled
    (==) NVIDIA(0): Silken mouse enabled
    (II) Loading extension NV-CONTROL
    (==) RandR enabled
    (II) Setting vga for screen 0.
    (II) Initializing built-in extension MIT-SHM
    (II) Initializing built-in extension XInputExtension
    (II) Initializing built-in extension XTEST
    (II) Initializing built-in extension XKEYBOARD
    (II) Initializing built-in extension XC-APPGROUP
    (II) Initializing built-in extension XAccessControlExtension
    (II) Initializing built-in extension SECURITY
    (II) Initializing built-in extension XINERAMA
    (II) Initializing built-in extension XFIXES
    (II) Initializing built-in extension XFree86-Bigfont
    (II) Initializing built-in extension RENDER
    (II) Initializing built-in extension RANDR
    (II) Initializing built-in extension COMPOSITE
    (II) Initializing built-in extension DAMAGE
    (II) Initializing built-in extension XEVIE
    (II) Initializing extension GLX
    (EE) No Input driver matching `kbd'
    (**) Option "Protocol" "auto"
    (**) Mouse0: Device: "/dev/psaux"
    (**) Mouse0: Protocol: "auto"
    (**) Option "CorePointer"
    (**) Mouse0: always reports core events
    (**) Option "Device" "/dev/psaux"
    (**) Option "Emulate3Buttons" "no"
    (**) Option "ZAxisMapping" "4 5"
    (**) Mouse0: ZAxisMapping: buttons 4 and 5
    (**) Mouse0: Buttons: 9
    (**) Mouse0: Sensitivity: 1
    (II) evaluating device (Mouse0)
    (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
    (--) Mouse0: PnP-detected protocol: "ExplorerPS/2"
    (II) Mouse0: ps2EnableDataReporting: succeeded
    What in hell means the (EE) No Input driver matching `kbd'? I have no idea what happened because no configs were changed whatsoever.
    Last edited by joqueza (2009-02-26 01:39:27)

    joqueza wrote:This is just frustrating. After doing a system upgrade (which upgraded xorg to version 1.5) I can't use the keyboard anymore. In fact, my screen would freeze also, as long as I was using the latest Xorg version. This machine's card is a geforce2 mx440..
    Perhaps you can find some help here http://wiki.archlinux.org/index.php/Xor … otplugging (or in one of the many threads about xorg 1.5 breaking input devices)
    No Idea about your problem after downgrading (expect just as a guess, there is some problem with xbinkeys when it is autostarted with the window manager -- http://bbs.archlinux.org/viewtopic.php?id=65468).

  • I can't use keyboard in firefox

    <i>Locking duplicate thread.<br>Please continue here: [[/questions/1001917]]</i>
    it happens when i typed one word many times<br />
    a dilague box appears with the options yes or no<br />
    i press no<br />
    taaadaaa i can't use my keyboard

    Hehe thanks for that, but I'm coming at this from the angle of not having a mouse to do that. I realise the obvious answer then is to plug one in, but I'm hoping there's another, keyboard-based way to do this.
    In IE, the Flash player is considered a part of the page like any other, and pressing Tab a few times to cycle through all the Flash buttons will then return you to the rest of the page - is there no similar method in Firefox?

Maybe you are looking for

  • Help: Photoshop CS4, Opens Adobe Help Website Automatically. Stuck in a loop.

    Hello there! I am having an issue with Adobe Photoshop CS4 (part of Creative Suite Web edition).  Any action, including switching to the Photoshop windows automatically swaps out to Firefox and opens the Adobe help website. My current action was conv

  • A problem about the policy of RMS which is added more than 500 principals

    Hello specialists ,     I've a question about RMS , when I added more than about 500 principals (users & groups ) into a policy in the RMS , it will report an error for any operation about the policy , and I find the error message as followed (for th

  • Foreign Currency valuation at Year End

    We have a number of Imprest cash accounts in Foreign Currency. The currency balances have to be revaluated at the Exchange rate prevalent on March 31. Can someone please let me know the configuration process & related t-codes. Correct answers will be

  • Selecting only required number of rows in an external table

    Hi, I have an external table with many flat files as source.. I know I can skip rows using the keyword 'SKIP'. I want to select only first 'n' rows from all the flat files as the rows available in my oracle external table. Is this Possible?... eg.. F

  • WLS Groups and JDeveloper Enterprise Roles

    When there are roles (global, domain, etc.) in the WLS Console, they seem to not have any representation in JDeveloper. It seems that JDeveloper Enterprise Roles correspond to WLS Groups. When I add permissions in the jazn-data.xml, it is Groups that