- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.3
(Moderators:
Waterman
,
Mithrandir_
,
beyonder
,
ZaPPZion
) >>
Get Mouse position
Pages: [
1
]
« previous
next »
Print
Author
Topic: Get Mouse position (Read 870 times)
0x4D617276
Community Member
Posts: 1
Get Mouse position
«
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
Re: Get Mouse position
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Game Development
-----------------------------
Projects
-----------------------------
=> In-Development
=> Showcase
=> Recruitment
=> Announcements
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.5
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
-----------------------------
TV3D SDK
-----------------------------
===> Shader Development
===> Content Pipeline
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks