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 / Sparkys collision box offset

Author
Message
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 7th Jun 2012 06:52 Edited at: 7th Jun 2012 08:46
Hey guys,

The problem I'm having is pretty simple. If you look at the image attached you will see that the collision box is ahead of the actual object. This is the code I'm using to set up the objects.




you guys have any ideas on how I can offset the collision box? Thanks in advance







SOLUTION: the only solution that I was able to come up with was to rotate the object inside the modelling program. From what I can tell you can't use the set object pivot command with sparky's dll unless maybe you set the pivot of your object to the exact center

The fastfood zombie killer
Daniel wright 2311
User Banned
Posted: 7th Jun 2012 06:58
I belive its your sc_allowobjectscaling

I could never ever get this to work right my self,the box is sized diffrent from the scaling, dont scale them and see what happens.

I could be wrong,but I dont think I am.

my signature keeps being erased by a mod So this is my new signature.
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 7th Jun 2012 07:01
I did it without the scaling and I still got the same result. I think it might be from when when I pivot the object the pivot might not be on the center of the object

The fastfood zombie killer
Daniel wright 2311
User Banned
Posted: 7th Jun 2012 08:16
Quote: "I did it without the scaling and I still got the same result."


you only need one update,this will update everything,position,pivits and all,try taking one of them out and see if it helps,leave the bottom update there.

I dont know myself,but this is a little odd.

my signature keeps being erased by a mod So this is my new signature.
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 7th Jun 2012 08:34 Edited at: 7th Jun 2012 08:46
You were right that I didn't need two updates, I thought I would need it before I actually scaled the object for it to take effect. Unfortunately it still gave me the results. If I omit yrotate and set object pivot the box is perfect

Edit: My solution up in first post

The fastfood zombie killer
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Jun 2012 18:43
Quote: "the only solution that I was able to come up with was to rotate the object inside the modelling program. From what I can tell you can't use the set object pivot command with sparky's dll unless maybe you set the pivot of your object to the exact center"


This was a bug mentioned by someone before. Looks like that's your only solid solution, glad you solved it.

TheComet

Login to post a reply

Server time is: 2026-07-07 22:23:04
Your offset time is: 2026-07-07 22:23:04