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] Problem with RayCollision Demo

Author
Message
Alaror
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 19th Jan 2012 16:16 Edited at: 19th Jan 2012 17:05
I'm trying to implement Sparky's collision in my game using raycasting to determine if a bullet has hit a wall. I wasn't able to get it to work, so I looked through the raycasting demo to see what I was doing wrong. After running the demo it seems that the issue is likely with Sparky's dll.

When I press the left mouse button to fire a raycast I have to move my mouse to the bottom-right of the object I'm trying to fire at for it to work. In the screenshot attached the location of the sight is where I had to put the mouse in order to have the white square appear on the box where it did. I'm using the vanilla code that comes with the demo; 0 modifications have been made.

Any idea what's going on?


EDIT: Decided to attach the picture this time.

EDIT 2: I want to clarify that this happens with all the objects that are in the demo, including the red ones on the left that you don't see in the screenshot.

EDIT 3: Well I worked out the problem in my code, so I don't really need an answer to this after all Still puzzles me why this would happen though.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Jan 2012 17:32
Could you please upload the entire project? I'd like to test this myself.

TheComet

Login to post a reply

Server time is: 2026-07-09 23:12:30
Your offset time is: 2026-07-09 23:12:30