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 / Simple raycast tutorial?

Author
Message
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd Apr 2008 17:19
Hi, i dont really understand how to use raycast.

Can someone give a short tutorial on how to:
- Setup the required things
- Set the rigid body for objects
- Raycast
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd Apr 2008 17:23
And btw i have not seen a documentation on the command "phy ray cast all shapes".
I looked in the help folder and nothing...

Quote: "Can someone give a short tutorial on how to:
- Setup the required things
- Set the rigid body for objects
- Raycast "

+
- How to check for hits
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd Apr 2008 18:33
Lol, one more thing.
I found out how to use the command "phy ray cast all shapes".
But i dont know how i will find the vectors.
Some help please?
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 24th Apr 2008 18:30
Ok, now i know how to use raycast, except for the vectors!

So in the command "phy ray cast all shapes", how do i set the vectors?

I want the vectors to be the camera angles!

Please some answers before a month has passed, i can see this board is almost dead...
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 24th Apr 2008 22:57
lol Ill post a sample later tonight ok. I have a very easy to use function for getting the vectors from the camera ok.
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 25th Apr 2008 03:13
as promised here is a sample.

bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 25th Apr 2008 17:14
Thanks, i will see if i can convert the code to my editor
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 25th Apr 2008 17:57
I read this on the documentation referance of the command called "phy make rigid body dynamic box":



Quote: "You will not be able to move this object using commands such as position object!"


Well, that is excactly what i want to do!


And aswell there are a few problems, i managed to move an aircraft to another position but thats it, and when i rotate the camera sometimes, it gives me an error message.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 25th Apr 2008 18:05
Ok, more info comes:


Look at this:



First, i load an object, then i make a rigid body for it.

Then i move towards the object and suddenly i get that error.
david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 25th Apr 2008 22:11
LOL you just encountered a bug....Sorry there are only work-arounds for this. LOL

good luck

LOL

hahahaha

LOL
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 25th Apr 2008 22:32
Ok...
I dont think that was a neccesary post really


...


OK, I AM SO PISSED RIGHT NOW!!!
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 1st May 2008 23:52
Ok, is this thread dead?
Well, in that case it is sad


david w
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: U.S.A. Michigan
Posted: 4th May 2008 03:56
what do you need to know that already hasnt been explained?
post simple questions please.
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 4th May 2008 11:21
I use sparky its sooo much better

bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 4th May 2008 13:52
Quote: "what do you need to know that already hasnt been explained?
post simple questions please. "


The raycasting vectors dont work.

sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 4th May 2008 15:00 Edited at: 7th May 2008 03:39
I just had my 1st go with ray casting and this is what I come up with



ok so tell me what you think, and let me know if you have any way to make it run faster or just changes that you think I should make, I think it could do with some way to stop the object getting to close to the camera with out dropping it, but can't for the life of me sort it out, dose any one know how I could stop the object from getting to close to the camera?

ideas or code snipits pleas.

I've added a link to the rest of my raycasting and shield page here:

http://forum.thegamecreators.com/?m=forum_view&t=127692&b=30

so you can have a look, I will at some point add some of my media to that post, like my modals and some of textures to.

if you can't help, I hope I've helped you instead.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....

Login to post a reply

Server time is: 2024-11-24 22:47:35
Your offset time is: 2024-11-24 22:47:35