Changeset 295:b398b0bc3f17


Ignore:
Timestamp:
09/05/13 21:31:00 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
38633938396632353130626638376361343763343939663934653562616336326466386165356133
Message:

Bullets don't collide with sensors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r293 r295  
    353353        self.last_position = position
    354354        for collision in r:
    355             if collision.shape.collision_type == self.source_collision_type:
    356                 continue
    357             if collision.shape == self.physicser.get_shape():
     355            if (collision.shape.collision_type == self.source_collision_type
     356                    or collision.shape == self.physicser.get_shape()
     357                    or collision.shape.sensor):
    358358                continue
    359359            print "Hit", collision.shape.collision_type
Note: See TracChangeset for help on using the changeset viewer.