mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Refactored bounding box to use 2 vectors, stubbed PhysicsManager.
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
class IMICFPS
|
||||
class PhysicsManager
|
||||
def initialize(collision_manager:)
|
||||
@collision_manager = collision_manager
|
||||
end
|
||||
|
||||
def update
|
||||
@collision_manager.collisions.each do |entity, versus|
|
||||
versus.each do |versus|
|
||||
resolve(entity, other)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def resolve(entity, other)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user