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 SC_UpdateObject doesn't seem to be working

Author
Message
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 13th Sep 2010 04:00
To be honest, I am new to working with Sparky's collision dll, so it could be me. Long story short: flight sim where you attack a very large cruiser type (its in space) and my model is upside down when its loaded. So I call SC_SetupObject then I roll it and call SC_UpdateObject, as the documentation instructs. However, the collision info seems to remain as if the ship were upside down.

Relevant code here:


And here's the code that checks for collision:


And yeah, I know, there's no point for the IF Shot>0 line, its in there from a previous iteration of the code and I just haven't bothered to remove it yet.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Jimmy
22
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 13th Sep 2010 04:49
You may need to use ZRotate Object instead, as I am fairly certain that the Pitch, Roll, and Turn Object commands don't update the object's angle values until Sync is called.

NaGaFailMo.
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 13th Sep 2010 04:57
Ahhh excellent, thank you Jimmy

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2026-07-22 22:07:11
Your offset time is: 2026-07-22 22:07:11