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 / help with moving object after collision

Author
Message
Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 10th May 2008 21:24 Edited at: 10th May 2008 22:02
Hi,
I need help with moving camera during collision with object.If the object 1 crash to object 2, object 1 should moving beside object 2. It is depend on camera angle of Y axis. so it makes in all 3D games.

see image



cout << sorry for my bad english;

Attachments

Login to view attachments
Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 10th May 2008 21:27 Edited at: 10th May 2008 21:36


cout << sorry for my bad english;
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 10th May 2008 22:48
You're using Sparky right? Investigate Sphere Sliding Collision! That code is done for you

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 11th May 2008 01:32
Oh... So that is what sliding collision is... I never understood what that meant...

~~It's not who you are underneath, but what you do that defines you.~~
Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 11th May 2008 19:54
yes, i use a sparky collision

cout << sorry for my bad english;
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 11th May 2008 20:08
Well.. then give the Sliding Collision demo that comes with sparky a whirl. You might find its exactly what you're looking for.

Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 12th May 2008 11:03
Some manual about sliding collision? How can i use SC_SphereSlide in my game? pls

cout << sorry for my bad english;
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 12th May 2008 13:35
Quote: "Well.. then give the Sliding Collision demo that comes with sparky a whirl. You might find its exactly what you're looking for."

Yeah, I tried mine, and it didn't work........ Some sort of error. Oh well, I guess i'll just try it out.

~~Its not about what you know, its about how you figure it out.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th May 2008 14:53
Insert #pragma once to the first line in the SC_Collision.h sparky header. I think that will help.

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 13th May 2008 02:21
Quote: "Insert #pragma once to the first line in the SC_Collision.h sparky header. I think that will help."


Well, that's a very nice solution but it didn't work for me (maybe I'm special )...

I extracted what I was looking for though... If you are doing an FPS, this code might work for you...



Good Luck!

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 13th May 2008 18:22
yeah.. mentioned in the other thread.. you might have mixed libraries ... like multi-threaded and not, or debug or not... dunno.

Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 14th May 2008 01:11
Quote: "yeah.. mentioned in the other thread.. you might have mixed libraries ... like multi-threaded and not, or debug or not... dunno.
"


Well now I'm one step closer since it compiles... So now we have progressed from linker errors, to runtime errors...

~~It's not who you are underneath, but what you do that defines you.~~
Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 16th May 2008 18:07
Thanks core2uu. your example code help me.
I tryed also ray collision... sparky's collision is the best.

cout << sorry for my bad english;
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 17th May 2008 02:27
It's not my code really... Actually it's mostly copied out of the sliding collision demo except for some stuff... But glad it was helpful to ya...

~~It's not who you are underneath, but what you do that defines you.~~

Login to post a reply

Server time is: 2024-11-20 11:31:40
Your offset time is: 2024-11-20 11:31:40