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.

Author
Message
Ezeakeal
17
Years of Service
User Offline
Joined: 28th Aug 2007
Location:
Posted: 1st Jul 2008 23:01
Hi all.

I have a function in my program to make a stack of dynamic blocks and set up joints with adjecent blocks. It works the first time I call it but after that the joints don't work. Not even for a seperate function.

Hopefully the code will make more sense.


xdim is an amount of blocks along the x axis
ydim and zdim are similar
xpos, ypos and zpos are positions
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jul 2008 13:42
I thought you link the joints like so.

if you had blocks to make a chair, base, leg1,leg2,leg3 and leg4

you would get



Dark Physics makes any hot drink go cold.
Airslide
19
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 2nd Jul 2008 20:08
Ah, I ran into this problem with my PhyX demo. Make sure to go back and delete all the joints before resetting. Alternately, you can use phy joint exist(joint) to check before each time you create a joint and delete it if it's already in existence.

Ezeakeal
17
Years of Service
User Offline
Joined: 28th Aug 2007
Location:
Posted: 5th Jul 2008 23:43
Thanks all, I haven't got to the point of resetting yet, but now I know in advance. I took the process out of a function and made it a gosub. I think my joint counter may have been wrong... not really sure, but its working now.

But if you do know how to make the function work (Although I doubt I have given enough info) it would be greatly apprectiated!

Login to post a reply

Server time is: 2024-09-19 02:02:12
Your offset time is: 2024-09-19 02:02:12