Note that there are some explanatory texts on larger screens.

plurals
  1. POXNA - Farseer Physics 3.5 - Collision Detection Issues - No/Zero Gravity - Space Game
    primarykey
    data
    text
    <p>So I'm working on a space game called Star Commander.</p> <p>The progress was going beautifully until I decided I needed to implement some sort of physics. I'm mainly going to be needing Farseer Physics for collision detection.</p> <p>Anyway, since it's a space game, when I am declaring my 'World' object:</p> <pre><code>private World world; this.world = new World(Vector2.Zero); </code></pre> <p>I have no gravity. This causes a weird result. I can collide with objects, but once I stop colliding with them, that's it. I can no longer collide with them and will just go straight through them. However, with gravity:</p> <pre><code>private World world; this.world = new World(new Vector2(0F, 1F)); </code></pre> <p>Collision works beautifully.</p> <p>I've tried looking around for help with Farseer, but a lot of the posts are dated and there are no real good sources for information and sadly, I'm pretty sure I'm not going to get the help I need here either.</p> <p>The only thing I found whilst looking around was that with objects called "Geoms" I need to disable a property called "CollisionResponeEnabled" or something similar.</p> <p>However the Geom object is no longer present in Farseer Physics 3 and has been totally replaced by Fixtures. Fixtures do not seem to have this property, however.</p> <p>I can provide any source code that may help, but keep in mind I am still implementing the physics engine into my project and a lot of the code isn't final and kind of messy.</p> <p><strong>IMPORTANT EDIT:</strong></p> <p>After recording a short gif to demonstrate my issue, I found out that I can only collide with an object once, to collide with it again, I have to collide with a different object, but then cannot collide with that object until I collide with a different object.</p> <p>Example:</p> <p><img src="https://i.imgur.com/DCzVqJr.gif" alt=""></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