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 / Ball falling trough floor?

Author
Message
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 7th Aug 2009 14:54
Hello,

I have made this 3DS moddel, witch is the base of a pinball machine. I also spawn a bal, but i just falls trough the 3DS moddel.

My code:



I also attached my 3DS file.

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 7th Aug 2009 16:14
had a look and I flipped the normals on the base of the object now works ok.

Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 7th Aug 2009 19:14
Uuuh what?

Can you explain that?
I'm pretty new to DBpro and Physics (A)
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 7th Aug 2009 19:24
In your 3ds model you have something that's called a normals, you can say they are the light and dark side of the face.

Take the upload model which has the normal flipped over and see if you can see what the difference is in your 3D package.

Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 01:08
Aah ok i see it now,

I also have another little question:
How can i rotate an object? Becouse phy set rigid body rotation
doesn't do anything.

Witch command should i use?
(It is for the flipper )
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 10:01 Edited at: 8th Aug 2009 10:02
use the kinematic set and set the object up to be kinematic.






Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 12:47
I use now:



But it doesn't rotate anything
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 12:51
you have to make the 100 value go up or down in your loop



Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 17:42
Sorry but when i put in the Do loop



It doesn't rotate (sorry)
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 18:13 Edited at: 8th Aug 2009 18:14
I made the box dynamic.


Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 19:56
Ok it's turning now
but now it doesn't hit the ball (The ball goes trough it)

Here's the total code:


I attached all the 3D files and textures

Hope that you can help me


Thijs Dalmaijer

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 21:58
OK I don't know if you have the debugger yet but here's the link to it.
http://developer.nvidia.com/object/pvd_home.html

if you down load that and install it you will be able to see how it is seeing your objects.

If I remember right you cannot scale up and object and then make it work in PhysX.

From what I can see it working but the physx object is smaller that the visual object.

on my graphic card this is very slow with the smoke going.

Plus with PhysX it helps if most of your object are the same size as cube with the size of one or smaller.
eg
make object cube id,1

so to me this working but not how it should.

Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 22:02
Just that you know,

But in this PC there's a ATI card So no PhysX
But ill go and try
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 22:22
here's your code with no scaling and the ball bouncing off the flipper.

my system not that fast only get about 208fps without the smoke.



Dark Physics makes any hot drink go cold.
ThijsD
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 8th Aug 2009 23:49
1000 times thanks!

it works like a charm now
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Aug 2009 12:34
Well done, follow those rules next time and you will not have to many problems, plus if you search the physX forum you will find a post which has all the help commands as an index which you can put into the ide, save having to open the chm files, unless you like using them.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-03-29 10:59:31
Your offset time is: 2024-03-29 10:59:31