Help :: Mouse in 3D
Help :: Mouse in 3D
I can't use mouse
Who can help me how to use Mouse in 3D Screen? like 3D RPG, RTS... games...
Who can help me how to use Mouse in 3D Screen? like 3D RPG, RTS... games...
In Irrlicht you can use functions like
to check what scene node is under mouse cursor.
To check exactly point under mouse cursor use... ...to get line from camera to mouse position in 3D world and then
Code: Select all
irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB
to check what scene node is under mouse cursor.
To check exactly point under mouse cursor use...
Code: Select all
core::line3d<f32> irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates
Code: Select all
bool irr::scene::ISceneCollisionManager::getCollisionPoint
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Re: Help :: Mouse in 3D
First, you'll get more responses if you post this in the Beginners Questions forum.
Why can't you use the mouse?
What are you trying to do with it, what do you expect to happen, and what do you see happening instead?
You'll have to give us more information.huydotnet wrote:I can't use mouse
Who can help me how to use Mouse in 3D Screen? like 3D RPG, RTS... games...
Why can't you use the mouse?
What are you trying to do with it, what do you expect to happen, and what do you see happening instead?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Code like Tut7 - Collision but i get this error messenger :
Compiling...
main.cpp
.\main.cpp(128) : error C2664: 'irr::scene::ISceneManager::createTriangleSelector' : cannot convert parameter 1 from 'irr::scene::IAnimatedMesh *' to 'irr::scene::IMesh *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Irrlicht\examples\LamNET\Release\BuildLog.htm"
Hi huydotnet!
I think you can search in the forum. And in the Tut7 use the mouse for FPS camera, if you want use your custom Camera (as RPG Camera) you must change some code. (getCursorControl(); getSceneCollisionManager(); getRayFromScreenCoordinates(); getSceneNodeFromRayBB())... hope this may help.
I think you can search in the forum. And in the Tut7 use the mouse for FPS camera, if you want use your custom Camera (as RPG Camera) you must change some code. (getCursorControl(); getSceneCollisionManager(); getRayFromScreenCoordinates(); getSceneNodeFromRayBB())... hope this may help.
There's something is fantastic, there's nothing is absolute.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Please, for you own good, ask this question again in the Beginners Help section. You'll get far more help in there.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Posts: 3
- Joined: Fri Apr 03, 2009 6:14 pm
- Location: venezuela