Question with terrain

Posted By: snake67

Question with terrain - 08/24/11 03:20

Hi

The player is a PhysX character:
pXent_settype(me, PH_CHAR, PH_CAPSULE);
and is moved by:
pXent_movechar(me, p_move, vector(camera.pan, 0, 0), 0);

terrain is set to:
pXent_settype(me, PH_STATIC, PH_POLY);

all goes well until he tries to walk on terrain. Then he falls through it...

Can someone help me please?
Posted By: 3run

Re: Question with terrain - 08/24/11 07:02

Do you scale terrain in WED? I heard around the forum, that it's scale shouldn't be changed in case to get proper collisions, scale it in MED.
BTW, snake I need some little help and some tips from you, could you PM me or add me via ICQ or Skype, please? Thank you.
Posted By: snake67

Re: Question with terrain - 08/24/11 15:04

Hi

Thanks, that could be the reason, will give it a try.
Posted By: snake67

Re: Question with terrain - 08/25/11 14:46

It now works. Thanks again. I recognized the position of terrain center to be critical too.

The terrain lightning is really a pritty feature. There seems to be a bug in the mapbuilder, terrain shadow map gets lost if biulding with "update entities"...
Posted By: 3run

Re: Question with terrain - 08/26/11 07:43

I'm glad I could help laugh
© 2024 lite-C Forums