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 Physics & Dark A.I. & Dark Dynamix / Ray Casting from 2D to 3D

Author
Message
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 26th Jun 2008 00:54
I'm trying to cast a ray into the screen (to target at objects) using Dark Physics based on the position of the mouse. Does anyone have an idea how to do this?

I just can't get my brain around it at the moment.

sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 26th Jun 2008 01:02
ok this link is what I did some time ago.
http://forum.thegamecreators.com/?m=forum_view&t=127692&b=30

soul sucking devils, twisted body of the damed, slivering slim drips from every poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 26th Jun 2008 13:29 Edited at: 26th Jun 2008 13:30
Ok change of plan. I need to be able to make a 3D object move around on the screen like a cursor. I need it so it's always on the screen and always in front of the camera, wherever the mouse cursor is.

Any help would be greatly appriciated.

EDIT:
Thanks for that sindore. It's not what I was looking for but I learnt a few things from it.

Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 26th Jun 2008 14:04
Well.. It was suprisingly easy. I've worked it out now.

Login to post a reply

Server time is: 2024-11-24 23:35:21
Your offset time is: 2024-11-24 23:35:21