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.

Code Snippets / More Sliding Collision In DBC

Author
Message
The Bad Coder
20
Years of Service
User Offline
Joined: 21st Sep 2004
Location:
Posted: 22nd Sep 2004 07:14
First off this is my first post, I'm pretty much a noob if thats what you wanna call me lol, but I thought to just post a little snippet of something I was kinda working on. I'm sure I may end up developing this more but it's a major learning process for me. So here's the deal, basically this snippet shows sliding collision with a simple little scene i built out of box objects bounded by collision boxes and a cylinder object which is controlled via the mouse. I found cylinder objects give the best appearance for collision in this situation. Using boxes or cubes didnt seem to look right as certain parts of the cubes would go a little into the walls when colliding, primarily the corners of the box that you control. I know the controls may be a little awkward as the cam is pretty stationary and you spin the object around on it's y axis to rotate it with the mouse. The cam just pretty well follows its direction with the point camera command but dont actually follow it around. No biggie though, prolly something I'll just work in later. Oh, by the way, the left mouse button also jumps the cylinder object so you can jump up on the platform. So my apologies if tis a basic stupid code but it may go further and be something more and I can remark it better as I learn more. I know its nothing to go oooh and ahhh over, but just a little something to give .So anyhow, enough of my babble, here's the code......
The Bad Coder
20
Years of Service
User Offline
Joined: 21st Sep 2004
Location:
Posted: 22nd Sep 2004 07:49
First off this is my first post, I\'m pretty much a noob if thats what you wanna call me lol, but I thought to just post a little snippet of something I was kinda working on. I\'m sure I may end up developing this more but it\'s a major learning process for me. So here\'s the deal, basically this snippet shows sliding collision with a simple little scene i built out of box objects bounded by collision boxes and a cylinder object which is controlled via the mouse. I found cylinder objects give the best appearance for collision in this situation. Using boxes or cubes didnt seem to look right as certain parts of the cubes would go a little into the walls when colliding, primarily the corners of the box that you control. I know the controls may be a little awkward as the cam is pretty stationary and you spin the object around on it\'s y axis to rotate it with the mouse. The cam just pretty well follows its direction with the point camera command but dont actually follow it around. No biggie though, prolly something I\'ll just work in later. Oh, by the way, the left mouse button also jumps the cylinder object so you can jump up on the platform. So my apologies if tis a basic stupid code but it may go further and be something more and I can remark it better as I learn more. I know its nothing to go oooh and ahhh over, but just a little something to give .So anyhow, enough of my babble, here\'s the code.

The Bad Coder
20
Years of Service
User Offline
Joined: 21st Sep 2004
Location:
Posted: 22nd Sep 2004 07:49
By the way, anyone know why I keep getting an error invalid ID when trying to check to see if my code posted?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 22nd Sep 2004 08:59
Just to answer your last question,
It's because thre is a "trial" period for new members where any posts that they make are not shown to the public untill approved by a Moderator. This is a security messure against spammers, and hackers.

The reason you get the error when trying to check the post is that you are not i a Moderator account, so you cannot check it

Once your posts are approved by a moderator ( shouldn't be more than 2 hours at the most after posting ) you can check it, and the public can see the post

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
The Bad Coder
20
Years of Service
User Offline
Joined: 21st Sep 2004
Location:
Posted: 22nd Sep 2004 15:21
Ahhh ok, I see, well now I made a fool of myself positing twice in a row lol, I have a better understanding, thank you much

Login to post a reply

Server time is: 2024-11-23 19:52:01
Your offset time is: 2024-11-23 19:52:01