URL:
  <http://gna.org/patch/?672>

                 Summary: particle-map collision
                 Project: Wormux
            Submitted by: jasper
            Submitted on: Tuesday 01/30/2007 at 02:17
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Attached is the code that colides point-particles with a bitmap. The code is
not based on wormux because i cant compile wormux myself yet. (its all me,
except for SDL :) )
Ofcourse this post is to suggest i (or someone else) work this into the
wormux code. It only requires a bool inside(ix,iy) function returning wether
index-position inside map colider.
It can be used for small sprites like fire, bullets, etc. Multiple connected
points could do larger objects, but i am planning to do those with another
colision function.
Ofcourse this still needs work, like sliding friction still to be done, more
testing. (hmm need force/acceleration for that, but could also do sliding
friction-lookalike(cheating) based on time since colide) And also dealing
with Physics::m_motion_type: FreeFall and Pendulum. (I know how to do both)
(as i said earlier) I think its a good thing to try change some of the older
physics code, since it sends angles back and forth converting them back and
forth. And i think it may be overly complicated.
Note that it is a rather big change to the code to change colision physics,
and i havent done much before. So criticism/comments are very welcome.
Grtjes, Jasper

PS linux needs a good worms game :D




    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?672>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna

Reply via email to