Jump to content
Arska134

Controller - Body overlapping (LE 2.5)

Recommended Posts

Hi. Just quick question if someone remembers anything about 2.5. I have problem that controller overlaps little bit 1x1x1 sized cube body, so it it kind of gets stuck on those bodies. I am using Sweptcollision(), but it's not helping at all. And there is lot of these bodies in my project. (over 3000)

 

Controller creation:

player=CreateController(1.8, 0.3, 0, 45, 1.3)

Share this post


Link to post

Maps are made like this. So now when i jump to wall it little bit goes inside of those bodies and won't slide to ground. Help appreciated.

project.png

Share this post


Link to post

So idk if this will help you but i'm attaching a link to the new location of all the LE 2.5 documentation. I would highly recommend you bookmark this if you are still using LE 2.X

http://www.leadwerks.com/werkspace/page/Documentation/le2

 

as far as your particular issue. I'm going to assume that you've tried turning off sweep collisions correct? If i'm understanding your issue properly is that when your character runs and jumps, when it contacts the wall, it gets "stuck" and doesn't slide down the wall. Or are you stating that when you walk to the edge of a wall b/c it is too big it doesn't fall down the wall.

Share this post


Link to post

So idk if this will help you but i'm attaching a link to the new location of all the LE 2.5 documentation. I would highly recommend you bookmark this if you are still using LE 2.X

http://www.leadwerks.com/werkspace/page/Documentation/le2

 

as far as your particular issue. I'm going to assume that you've tried turning off sweep collisions correct? If i'm understanding your issue properly is that when your character runs and jumps, when it contacts the wall, it gets "stuck" and doesn't slide down the wall. Or are you stating that when you walk to the edge of a wall b/c it is too big it doesn't fall down the wall.

Yes i have bookmarked command reference long time ago. And yes first one is correct.

it gets "stuck" and doesn't slide down the wall.

Controller little bit penetrates the wall.

Share this post


Link to post

Maybe the fact that your controller stepheight is being set to 0 that's causing an issue? Maybe try 0.2? Also, in earlier versions of LE2, we had to play around a lot with the physics iteration parameter in the controller:Update() function. You could try increasing/decreasing that value to see if it helps.

Share this post


Link to post

Maybe the fact that your controller stepheight is being set to 0 that's causing an issue? Maybe try 0.2? Also, in earlier versions of LE2, we had to play around a lot with the physics iteration parameter in the controller:Update() function. You could try increasing/decreasing that value to see if it helps.

Hmm... looks like it helps little bit. If i put stepheight to negative values like -0.2, it won't get stuck if i jump to wall and then press nothing it slides down, but when i keep pressing button againist wall it kind of "graps" in wall. If i let go then it slides down again. Very frustrating.. :/ Any ideas?

 

Edit: It penetrates wall when i keeps pressing against it. Any way to avoid that and not letting controller get inside of block?

Share this post


Link to post

what does your controller:Update() function look like? did you try turning up the iterations parameter?

updatecontroller(player, 0,0,move*12, jump,50, 1, crouch)

 

I tried to turn it to 10, but not change.

 

Edit: with 1000 iterations it slides down but FPS drops very low. (20 fps)

 

Edit 2: Looks like it sometimes gets stuck in the ground when jumping. (Go little bit trough ground)

Share this post


Link to post

and swept collisions are turned on on all those boxes? i don't know at this point... other than to make the boxes physics body one solid entity instead separate one for each box? if all the boxes are meant to be static then no reason not to make everything use one physics body...

Share this post


Link to post

and swept collisions are turned on on all those boxes? i don't know at this point... other than to make the boxes physics body one solid entity instead separate one for each box? if all the boxes are meant to be static then no reason not to make everything use one physics body...

Yes swept collision is on. Problem is that those blocks are destroyable. :/ Blocks are static, but there is no way to make controller be able to interact without a body in blocks.(?)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...