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 / Sparky's Collision - Incorrect Object Bounds

Author
Message
lil marioman
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: Canada
Posted: 19th Sep 2009 20:11
I've been playing around with my FPS code, when I realized - I can shoot over the enemy's head, yet still hit them. I turned on 'SC_drawObjectBounds" and I immediately saw what happened.

The bounds were correct, but they were offset above the actual model (see screen shot). I moved the model up, the bounds went higher, moved it down, it went lower. There's no command to offset the object bounds, or at least, none that I know of.

Would there be any way to fix this?

Programming? Not my Forte. But THAT is!
-insert picture of a KIA Forte here-

Attachments

Login to view attachments
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 19th Sep 2009 20:18 Edited at: 19th Sep 2009 20:18
offset limb objID, 0, x, y, z.
In other words, offset the root limb (0) to offset the entire object.
For your issue I'd suppose the values 0.0, object size y(objID) / 2.0, 0.0 would do the trick.

Login to post a reply

Server time is: 2024-05-03 06:09:47
Your offset time is: 2024-05-03 06:09:47