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: How do I get my triangle to not stand on it's head?

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 8th Sep 2009 18:42
Hi all,

I'm just trying to get a triangular shaped object to NOT stand on it's head as shown here:


I have attached the 3DS model of the triangle.

I have been loading object then using:

...but sometimes it lands on it's head!

I thought using mesh meant it calculated the physics object from the "mesh" but it still seems to be using a box?

Any help would be much appreciated!!

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Sep 2009 19:00 Edited at: 8th Sep 2009 19:18
its one of the commands that work backwards.

try this



plus are you using this debugger.

http://developer.nvidia.com/object/pvd_home.html

edit


see if that makes it do what you want.

Dark Physics makes any hot drink go cold.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Sep 2009 11:24
Thanks for the link to the De-bugger @HowDo, I'll have to take a look at it later but what do you mean when you say the command works backwards?

I'm not quite sure if I'm using "phy load rigid body dynamic mesh Object,"tir.x",0" correctly. Do I save a mesh as a ".X" file from my 3ds object then load it using this command or what?

I'm just not sure where the "tir.x" file comes from...?

I guess I'm just trying to get my head around the process, sorry if I'm being dumb!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Sep 2009 15:26
My bad.

Ok you were supposed to be able to use the command this way

phy make rigid body dynamic mesh 10,"tri.x",0

which would have made a file called tri.x(or any name you wanted) and the physX system would use it to workout were all the points were.

However it did not do it like that, you had to use the load commad to make this file.

so
phy load rigid body dynamic mesh 10,"tri.x",0 does the same as above.

does that help.

Dark Physics makes any hot drink go cold.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Sep 2009 16:41
I worked out what I was doing wrong... pretty stupid really!

I was deleting the physics object elsewhere in the program and then adding it back in as a dynamic box each time.

Still I am having to add it back in as a convex as when I use mesh it doesn't seem to work. I'll work on it and post my findings (optimistic) or failings (realistic).

I'll test what you have posted too thanks @HowDo!

Login to post a reply

Server time is: 2024-03-29 00:26:47
Your offset time is: 2024-03-29 00:26:47