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 Discussion / Collision boxes

Author
Message
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Jul 2009 15:49
Is there an easy way to create all of the collision boxes for your games?

I am currently creating rather a complex building in a 3D package. It has pillars, irregular shaped walls, many rooms, corridors.

Will I need to place all of the collision boxes manually, or is there an easier way?

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Jul 2009 16:04
There is an easier way.

I attached sparky's collision dll, you will need the enhancement pack or v1.2 (v1.14) of DBC.

You can use that to check for collision on complicated terrains and x or 3DS objects.

Also check out this thread:

Get Ground Height and Tilt from Object Terrains: X, 3ds

TheComet


Make the path of your enemies easier with Waypoint Pro!

Attachments

Login to view attachments
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Jul 2009 17:53 Edited at: 20th Jul 2009 18:02
Quote: "There is an easier way.

I attached sparky's collision dll, you will need the enhancement pack or v1.2 (v1.14) of DBC.

You can use that to check for collision on complicated terrains and x or 3DS objects.

Also check out this thread:"


Thanks!
However, I am inside the building, and need to check for collisions with walls. I'm not sure that ground height is the same thing. But having read a few threads it seems that Sparky's can do sliding collision inside a building.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Jul 2009 18:05
This isn't only for ground height. You can cast the ray in any direction you want and see if it goes through a wall, or the ground or even the roof.

TheComet


Make the path of your enemies easier with Waypoint Pro!
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Jul 2009 18:15
Quote: "This isn't only for ground height. You can cast the ray in any direction you want and see if it goes through a wall, or the ground or even the roof.

TheComet"


Great! Saves a lot of time!

Login to post a reply

Server time is: 2024-05-20 07:45:27
Your offset time is: 2024-05-20 07:45:27