1
$\begingroup$

So I'm making a three-dimensional danmakufu game in Blender. I'm trying to restrict the player's movement so that someone can't just barrel through the level.

I have currently restricted his movement to a lidless box that is 6 units 'X' by 18 units 'Y' by 2 units 'Z'. All forms of bounding cause the player to be sent flying out of the screen. Can someone help me please? The box moves -.0025 units x per second. a markup of the game in which those with screen readers cannot see that I've pointed out the bounds, player, loop and enemy This is only with dynamic or body physics. If using static physics, the player can just go through the barrier.

AND STOP POSTING ANSWERS IN THE COMMENTS

Currently, with the bounding box set to Rigid Body with x-translation enabled and the player as a dynamic object with all degrees of freedom stripped (and neither had collisions on in the first place!) the player is instantly flung off in the direction of positive x, negative y.

Here have some more pictures! top bottom

$\endgroup$
  • $\begingroup$ What exactly do you mean by restrict their movements? I'm just having a hard time picturing what this situation looks like right now>. $\endgroup$ – Scalia May 15 '15 at 19:10
  • $\begingroup$ I've tried Triangle Mesh. I've tried Convex Hull. I've even tried it with different objects: simply stick a ball into a cube with either bounding mesh that is lacking a face, and the ball goes pchooo and is sent flying x-wards at velocity y or even teleported out. $\endgroup$ – Nefer007 May 15 '15 at 19:45
  • $\begingroup$ it doesn't even fall: it's meant to hold a z-position and stay there inside the 6x18 box. Different settings can have the player spazzing out and being sent x-wards, being warped out who-knows-where, or even utterly unaffected and ignored by the box! $\endgroup$ – Nefer007 May 16 '15 at 14:47
  • $\begingroup$ psst: @X-27, I'd have upvoted your answer if you'd actually answered. I'd also have added gifs if I could. $\endgroup$ – Nefer007 May 16 '15 at 15:01
  • 1
    $\begingroup$ Let us continue this discussion in chat. $\endgroup$ – Nefer007 May 16 '15 at 22:42
0
$\begingroup$

The box is having weird collision with the player, you can probably see this happening if you use "physics visualization".

enter image description here

To solve, switch the physics type of the box to "static" and have it clamp to the travel path that it needs to glide along. I made a working .blend aside from the "clamp to" because I'm not sure of your situation.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.