Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Simple camera question  (Read 192 times)
Canning
Community Member
*
Posts: 592


« on: September 20, 2011, 01:11:03 AM »

I am wanting to rotate my camera around horozontally while looking at my space ship.

This is my current code camera code:
Code:
Scene.SetCamera(PlayerPosX + 200, PlayerPosY + 200, PlayerPosZ + 200, PlayerPosX, PlayerPosY, PlayerPosZ)

I would like to keep this code if possible, just adding some additions to move the camera around the ship (Located at PlayerPosX, PlayerPosY and PlayerPosZ)

I have been playing around with this code with no luck:
Code:
        InputEngine.GetMouseState(MouseX, MouseY, ButtonLeft, ButtonRight)
        If ButtonRight Then
            AngleHorizontal = AngleHorizontal + MouseX / 3
            AngleVertical = AngleVertical + MouseY / 3
        End If

Please help
« Last Edit: September 20, 2011, 04:51:12 AM by Canning » Logged

I am using 2010 VB.NET and TV 6.5 with Windows 7
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks