Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / [Dark GDK] Collision of the sprite mouse with 3d object

Author
Message
Jonathan Gavilan Mora
6
Years of Service
User Offline
Joined: 12th Sep 2013
Location:
Posted: 27th Oct 2013 22:35
How I can detect the collision of the mouse sprite against a 3d object?

It is in order to make a selection of the enemy for example.

Thank you!

Caza
go2none
10
Years of Service
User Offline
Joined: 8th Oct 2008
Location: London
Posted: 28th Oct 2013 19:59
int dbPickObject ( int screenX, int screenY, int objectStart, int objectEnd [, int ignoreCamera] )

Have a look at the documentation for details. 3D >> Screen Object Expressions
Jonathan Gavilan Mora
6
Years of Service
User Offline
Joined: 12th Sep 2013
Location:
Posted: 28th Oct 2013 22:36
Thanks!

Caza
s_i
10
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 29th Oct 2013 18:56
Maybe this helps you too: conversion of 3D coordinates of the world's any visible point into 2D screen coordinates:
http://www.thegamecreators.com/?m=codebase_view&i=6a03469e7a66c7af6d861454e3f62bb3
I use it in strategy game (Y is up, ZX is floor).

Login to post a reply

Server time is: 2019-09-18 12:30:02
Your offset time is: 2019-09-18 12:30:02