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 / phy ray cast all shapes?

Author
Message
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 14th May 2011 17:46
can someone tell me how 2 use this command?? ( not in the dp reference btw!)
i dont understand what a float is.i even looked it up on google
im trying 2 use this command so i can like make my character wall jump. (trying)

i havent been able 2 get this 2 work. pls help,anyone have a small example i can study????


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th May 2011 17:05 Edited at: 15th May 2011 17:06
Quote: "phy ray cast all shapes(x,y,z,xx,yy,zz)"


ok here we go:-

First x, y, z is where the casting object is position.

then xx, yy, zz is the direction you wish to check if there a hit.

did that help?
The float bit just means that the number is like so 6.4 so all your z y z xx yy zz into be made float by doing one of these.

z# y# z# and xx#, yy# zz#
or

x as float
y as float
z as float
xx as float
yy as float
zz as float

the above means that you do not have to go though all your code to change them to x to x#.



Dark Physics makes any hot drink go cold.
David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 17th May 2011 23:05
well i changed my variables 2 positions of the objects but my variable for the ray cast still doesnt change.either the ray isnt working or im still not using it right. help???
pls see my code,am i coding this right??????????????? ]

(i wouldve replied earlier but my internet hasnt been working 4 a few days! dam service! )


Southside Games
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 11th Aug 2011 23:15
did you ever get it to work? I'm having a hard time with this too. man DP is glitchy...
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 12th Aug 2011 19:55
Hi

In your code you use raycast inside of an object, wich could lead to problems.
however, you still don't save directions in xx# etc.

Here your example as bullet hole tracing (and sorry for my bad english):

Login to post a reply

Server time is: 2024-03-19 02:00:41
Your offset time is: 2024-03-19 02:00:41