Note that there are some explanatory texts on larger screens.

plurals
  1. POFarseer - Particles just go thru another body
    primarykey
    data
    text
    <p>I am creating my maze like this:</p> <pre><code>agentBody = BodyFactory.CreateBody(world, position); _agentBody.BodyType = BodyType.Dynamic; _agentBody.IgnoreGravity = true; _agentBody.Restitution = 0.1f; _agentBody.Friction = 1f; _offset = ConvertUnits.ToDisplayUnits(1.5f); FixtureFactory.AttachRectangle(3f, 0.1f, 1f, new Vector2(0, 1.55f), _agentBody); FixtureFactory.AttachRectangle(3f, 0.1f, 1f, new Vector2(0f, -1.55f), _agentBody); FixtureFactory.AttachRectangle(width, 3f, 1f, new Vector2(-1.55f, 0f), _agentBody); FixtureFactory.AttachRectangle(width, 3f, 1f, new Vector2(1.55f, 0f), _agentBody); </code></pre> <p>and my sand particles like this:</p> <pre><code>for (int i = 0; i &lt; 8; i++){ _sands[i] = BodyFactory.CreateRectangle(_world, 0.05f, 0.05f, 1f); _sands[i].IsStatic = false; _sands[i].Restitution = 0.1f; _sands[i].Friction = 0.1f; _sands[i].Position = new Vector2(1.8f + i * 0.2f, 2.2f); } _sand = new Sprite( ScreenManager.Assets.TextureFromShape( _sands[0].FixtureList[0].Shape, MaterialType.Dots, Color.SandyBrown, 0.8f )); </code></pre> <p>I checked fixture in debug view and it looks fine. But it isn´t. When particles appear on the screen they fall down (because of gravity) and go through my maze borders without any problem and they stop at the bottom where there's a static body. Why is that? Why don't particles stop in my maze?</p> <p>For context, please see my previous question:<br> <a href="https://stackoverflow.com/questions/12833724/farseer-particles-doesnt-move-bounce-accord-to-borders">Farseer - Particles doesn&#180;t move/bounce accord to borders</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload