Class: Teien::ContactResult
- Inherits:
-
Bullet::ContactResultCallback
- Object
- Bullet::ContactResultCallback
- Teien::ContactResult
- Defined in:
- lib/teien/base_object/physics.rb
Instance Method Summary collapse
- #add_single_result(cp, colObj0, partId0, index0, colObj1, partId1, index1) ⇒ Object
- #collided? ⇒ Boolean
-
#initialize ⇒ ContactResult
constructor
A new instance of ContactResult.
Constructor Details
#initialize ⇒ ContactResult
Returns a new instance of ContactResult.
8 9 10 11 12 |
# File 'lib/teien/base_object/physics.rb', line 8 def initialize super @isCollided = false end |
Instance Method Details
#add_single_result(cp, colObj0, partId0, index0, colObj1, partId1, index1) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/teien/base_object/physics.rb', line 18 def add_single_result(cp, colObj0, partId0, index0, colObj1, partId1, index1) @isCollided = true return 0 end |
#collided? ⇒ Boolean
14 15 16 |
# File 'lib/teien/base_object/physics.rb', line 14 def collided? return @isCollided end |