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 ray casting accuracy

Author
Message
z i l c h vortex
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 21st Mar 2011 16:47
I'm using sparkys ray casting for the aim of my weapon but for some reason it seems to be inaccurate. I have the ray casting going from the camera position to the limb which I have positioned in front of me. when I shoot at the blocks in the middle of the map they sometimes hide but other times they won't.

Here's my code:-


life is short but so am i
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 21st Mar 2011 19:14
After you hide the objects, you need to use sc_removeobject to get rid of their collision information.

NaGaFailMo.
z i l c h vortex
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 22nd Mar 2011 03:40
Thank you Jimmy

life is short but so am i

Login to post a reply

Server time is: 2026-07-17 14:01:13
Your offset time is: 2026-07-17 14:01:13