1 registered members (AndrewAMD),
1,089
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Strange thing
[Re: snake67]
#354899
01/23/11 08:32
01/23/11 08:32
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
When activated, objects fall through the floor. Did someone encounter similar problems? I had a similar problem and I solved it by adding to the entity that function pXent_setccdskeleton, but I had reduced the scale vector to: (0.25,0.25,0.25) What do you mean with "trigger system activated" ? I also wonder what kind of system you meant?
|
|
|
Re: Strange thing
[Re: snake67]
#355175
01/25/11 03:59
01/25/11 03:59
|
Joined: Sep 2003
Posts: 648 Switzerland
snake67
OP
User
|
OP
User
Joined: Sep 2003
Posts: 648
Switzerland
|
Hi there. Thanks, but its not solved yet. I still have the same problem. Here is the code:
void main()
{
physX_open();
pX_setgravity(vector(0, 0, -9.81));
pX_setccd(1);
level_load("...");
}
action physics_object()
{
pXent_settype(me, PH_RIGID, PH_BOX);
pXent_setccdskeleton(me, vector(0.2, 0.2, 0.2), 1);
pXent_settriggerflag(me, NX_TRIGGER_ON_ENTER, 1);
}
I am certanly making a simple mistake... Does someone have any suggestions? (Thanks)
|
|
|
Re: Strange thing
[Re: snake67]
#355247
01/25/11 17:55
01/25/11 17:55
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
Thanks. But i am not using terrain, i have a block level compiled with the option "Build Simple Map". Try to use that code, after your level map is loaded, maybe it helps.
...
physX_open();
pX_setccd ( 1 );
level_load("mylevel.wmb");
pXent_settype(level_ent,PH_STATIC,PH_POLY|PH_MODIFIED);
...
|
|
|
|