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.

DarkBASIC Professional Discussion / Object collision question.

Author
Message
Go Devils
13
Years of Service
User Offline
Joined: 13th Aug 2012
Location:
Posted: 17th Nov 2012 05:59
I have loaded a .X object of a fence rail. After positioning the original object, I created a dozen or so instances to create a running wooden fence around a meadow. I have set my Camera to automatic collisions, and turned global collisions to on.

Collisions between the camera and the fence sections work perfectly as long as the fence is not rotated. As soon as an instance or object is rotated, collisions work either erractically, or not at all. Other than that, automatic collision seems to work pretty well for what I'm doing.

Any ideas on how to get the rotated objects to play nice during collisions with the camera?

Thanks
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 17th Nov 2012 12:44
are you talking about build-in dbp collision? if so, i highly recommend NOT to use it, but use sparky collision instead. it works much faster than dbp collision. besides, when you download the plugin, there will be some demos you can see how it works.. if im not mistaken, there is also a rotation example just for your needs..

Advanced Updater for your games!

Login to post a reply

Server time is: 2026-07-07 21:57:40
Your offset time is: 2026-07-07 21:57:40