Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Get Mouse position  (Read 870 times)
0x4D617276
Community Member
*
Posts: 1


« on: May 05, 2011, 11:10:53 AM »

Hello,
can somebody help me??
So i put the engine in a picturebox and rendered some meshes!
But now i want to place a new mesh by clicking with the mouse at a position and there the mesh should appear!
But how do i get the mouseposition??
Please i need help
Logged
xenthal
Community Member
*
Posts: 1


« Reply #1 on: May 06, 2011, 07:18:33 AM »

Inp.GetAbsMouseState(mouseX, mouseY, mouseButton1, mouseButton2, mouseButton3, mouseButton4, mouseZ)
this will return the current mouse stats.
You can simply check if clicked ' if mouseButton1 = true ' and the mousex and y is the location clicked.

or i think you can also use the MousePick function

''

mousePick As TV3D65.TVCollisionResult

mousePick = clsTVScene.MousePick(mouseX, mouseY, TV3D65.CONST_TV_OBJECT_TYPE.TV_OBJECT_LANDSCAPE, CONST_TV_TESTTYPE.TV_TESTTYPE_ACCURATETESTING)

''

mousePick.GetCollisionImpact.x
mousePick.GetCollisionImpact.y
mousePick.GetCollisionImpact.z

will be the locations
Logged
Pages: [1]
  Print  
 
Jump to:  

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