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.

Dark Physics & Dark A.I. & Dark Dynamix / Collision with static object response? (GDK)

Author
Message
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 30th Sep 2010 06:20
I have tried this with MULTIPLE different commands and cannot seem to get it right, I need a command the returns a variable if there is no collision with something static then it would return 0, if there is it would return 1 (or other way around or more than one)
Is there a command anywhere with this?

I want coke, not Pepsi!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 30th Sep 2010 13:10
have you tried this one?



Dark Physics makes any hot drink go cold.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 30th Sep 2010 17:35
I will try after school HowDo thanks.
But what would I put for int values?

I want coke, not Pepsi!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 30th Sep 2010 21:34 Edited at: 30th Sep 2010 21:40


this is what int one and int two above are.

there also this one that tells you if its dynamic.


there's also the one but it does not return the values as listed.



Dark Physics makes any hot drink go cold.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 1st Oct 2010 00:53 Edited at: 1st Oct 2010 00:54
that phy get collision only works if I know what to object is going to land on, I need it to return a value on any static object without me having to write hundreds of lines.

EDIT: I tried yours on the ground I am using and it's not returning any values, it is just staying at 0, this is my code if someone could help:
float coly = dbPhyGetCollision(1,2);

and to display it:
dbText(0,40,dbStr((int)coly));

I want coke, not Pepsi!
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 2nd Oct 2010 00:46
Bump

I want coke, not Pepsi!

Login to post a reply

Server time is: 2024-04-19 04:22:28
Your offset time is: 2024-04-19 04:22:28