Clicking mouse on 3D view

Problems building or running the engine, queries about how to use features etc.
slapin
Bronze Sponsor
Bronze Sponsor
Posts: 392
Joined: Fri May 23, 2025 5:04 pm
x 29

Clicking mouse on 3D view

Post by slapin »

Hi, all!
Are there any helper functions to produce raycast ray from camera plane into the world for clicking
selection of 3D stuff? Also is there non-physical raycast into geometry like bvh raycast or something else efficiant?
Most of time I need it to select object in 3D scene, but who knows I might once want to draw on surface...
Thanks!

paroj
OGRE Team Member
OGRE Team Member
Posts: 2284
Joined: Sun Mar 30, 2014 2:51 pm
x 1250

Re: Clicking mouse on 3D view

Post by paroj »

rpgplayerrobin
Bugbear
Posts: 806
Joined: Wed Mar 18, 2009 3:03 am
x 468

Re: Clicking mouse on 3D view

Post by rpgplayerrobin »

Here is my code to raycast any 3D model down to triangles:
viewtopic.php?p=551881#p551881