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.

Newcomers DBPro Corner / Help with collision detection

Author
Message
Charlie
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 4th Jan 2007 18:31
Sorry to ask, but can you tell an easy way to make collision detection of 3D objects? I was thinking I could do this by not enabling the object to walk when colliding, and then position it to a previous position to let pass the object, but not overlap with it. The problem is, do you know how to store data of the object previous positions just before the collision? If you don't understand I mean that for example the object collides with another, and then when that happens I want the object to return to its previous position; something similar to what happens in the automatic object collision comand, but using boxes or polygons for the collision checking.

Here is my first attemp, working for the vertical movements:



The other object you can download it in the attached media. Thanks for your help.

Carlos

Have a nice day

May GOD be with you +

Have a nice day

Attachments

Login to view attachments
Charlie
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 4th Jan 2007 18:33
Sorry here is my correct code attempt:



Have a nice day
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th Jan 2007 18:35
Have you read the stickies at the top of this forum - there's one which specifically covers all aspects of collision...

TDK_Man

Charlie
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 4th Jan 2007 18:46
Oh. Thank you. I finally discovered how to make some collision movement:



Have a nice day
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 5th Jan 2007 23:06
TDK you finally evolved from a strange looking long knecked purple creature! (the avatar )

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Jan 2007 01:26
Yes lol!

I've been using that 'thing' for years and got used to being the only one using it.

Now there are a couple of others using it and I'm easily confused - getting old you see...

TDK_Man

Login to post a reply

Server time is: 2024-11-26 03:48:35
Your offset time is: 2024-11-26 03:48:35