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

Author
Message
Kryogenik
16
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 21st Feb 2010 00:21
Hey guys. I'm using Sparky's collision for my game. And for some of the enemies and stuff, the collision box seems too low, if you know what I mean. The bullet won't actually hit them until about the torso down. They are animated too, would that have anything to do with it. Anyway, thanks in advance.

Codesurge is so awesome, thanks Hyrichter.
MikeS
Retired Moderator
23
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 21st Feb 2010 04:21
Are you using polygonal collision? Please post some source. Sparky's works fine for all static collisions that I have done. Perhaps someone else may advise, or you can search around for some examples of animated meshes in the code snippets section.

A book? I hate book. Book is stupid.
(Formerly Yellow)
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 22nd Feb 2010 00:14
Have you scaled the objects in the code, by chance? If so, did you use the Sparky's command SC_allowObjectScaling?

Have you used SC_drawObjectBounds, just to see what the collision boundaries are? Perhaps the radius you are using with Sparky's is incorrect.

Login to post a reply

Server time is: 2026-07-27 06:20:13
Your offset time is: 2026-07-27 06:20:13