Hi all
Just in case someone opens the PhysX Pandora's box and make some changes.
here one I found in the help file for command set
Quote: "phy get rigid body type "
it say that it should return the following number for that type.
Quote: "the following values are used to indicate rigid body type:
1, static box
2, dynamic box
3, static sphere
4, dynamic sphere
5, static capsule
6, dynamic capsule
7, static mesh
8, static terrain "
however if you run the following code you will find that it comes out different, first number is what it should be the second what is returned.
Rem ***** Main Source File *****
sync on
sync rate 60
phy start
static_box=1
dynamic_box =2
static_sphere =3
dynamic_sphere=4
static_capsule =5
dynamic_capsule =6
static_mesh =7
static_terrain=8
dynamic_mesh=9
dynamic_convex=10
make object cube static_box,1
make object cube dynamic_box,1
make object sphere static_sphere,1
make object sphere dynamic_sphere,1
make object box static_capsule,1,2,1
make object box dynamic_capsule,1,2,1
make object box static_mesh,2,1,2
make object cube dynamic_mesh,1
make object box dynamic_convex,1,1,1
phy make rigid body static box static_box
phy make rigid body dynamic box dynamic_box
phy make rigid body static sphere static_sphere
phy make rigid body dynamic sphere dynamic_sphere
phy make rigid body static capsule static_capsule
phy make rigid body dynamic capsule dynamic_capsule
phy make rigid body static mesh static_mesh
phy load rigid body dynamic mesh dynamic_mesh,"mesh1.x",0
phy make rigid body dynamic convex dynamic_convex
do
set cursor 0,0
print "static_box=1 ~"; phy get rigid body type ( static_box )
print "dynamic_box =2 ~";phy get rigid body type ( dynamic_box )
print "static_sphere =3 ~";phy get rigid body type ( static_sphere )
print "dynamic_sphere=4 ~"; phy get rigid body type ( dynamic_sphere )
print "static_capsule =5 ~";phy get rigid body type ( static_capsule )
print "dynamic_capsule =6 ~";phy get rigid body type ( dynamic_capsule )
print "static_mesh =7 ~";phy get rigid body type ( static_mesh )
print "dynamic_mesh =? ~";phy get rigid body type ( dynamic_mesh )
print "dynamic_convex =? ~";phy get rigid body type ( dynamic_convex )
phy update
sync
loop
ps. Now would it be a good idea to report what you think could be an error in PhysX to make something like this with the [PhysX] it the title plus some code to show the point and description what you thought should have happened.
If MOD disagree with this then delete or rename title.
Dark Physics makes any hot drink go cold.