0 registered members (),
1,549
guests, and 14
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
A problem with PH_CHAR, PH_CAPSULE
#398592
04/04/12 13:47
04/04/12 13:47
|
Joined: Aug 2007
Posts: 49 Rio Claro, São Paulo, Brazil
Cristiano_Iost
OP
Newbie
|
OP
Newbie
Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
|
Hello to all,
I using pXent_settype(my,PH_CHAR,PH_CAPSULE) to create a character physics, and your gravity. But when I use PH_CHAR, the bounding box of the model don´t stay placed in the same level of the floor. The model/character float a small distance. The corretly is that the foot stay close by the floor.
I used c_setminmax to make the bounding box stay in the same height of the character but the problem persists.
This happens using PH_BOX too.
Anyone know the problem ?
Last edited by Cristiano_Iost; 04/04/12 13:51.
|
|
|
Re: A problem with PH_CHAR, PH_CAPSULE
[Re: Cristiano_Iost]
#398594
04/04/12 14:01
04/04/12 14:01
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Hey mate, I didn't understand what problem are you facing, but here is working example of simple movement with PH_CHAR: Download link I hope you'll find it useful mate! Good luck. Script is free to use.
|
|
|
Re: A problem with PH_CHAR, PH_CAPSULE
[Re: Cristiano_Iost]
#398700
04/05/12 13:20
04/05/12 13:20
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
Check px_setunit and scale down the entity before using pxent_settype and scale it back up after this will make a smaller collision hull, also not sure bout this one but dont use models that arent centered above the ground correctly or have vertices that dont belong under it
Compulsive compiler
|
|
|
Re: A problem with PH_CHAR, PH_CAPSULE
[Re: 3run]
#399304
04/13/12 22:17
04/13/12 22:17
|
Joined: Aug 2007
Posts: 49 Rio Claro, São Paulo, Brazil
Cristiano_Iost
OP
Newbie
|
OP
Newbie
Joined: Aug 2007
Posts: 49
Rio Claro, São Paulo, Brazil
|
well, I tested here, and finally to discover that this problem is because the scale of the model. If you put the model in a scale of 500 or more in Z(MED), the foot´s model, or character, touch the floor (Scale z = 500 for PH_CAPSULE). This is the solution that I find. I think that have another solution for this, and more easy.
Last edited by Cristiano_Iost; 04/13/12 22:20.
|
|
|
|