struct Engine::CollisionData(X)

Defined in:

engine/physics.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data : X, first : Bool, pos : Vector2, normal : Vector2, energy : Float64, impulse : Vector2) #

[View source]

Class Method Detail

def self.try_new(body, with_mat) #

[View source]

Instance Method Detail

def data : X #

[View source]
def energy : Float64 #

[View source]
def first : Bool #

[View source]
def first? #

[View source]
def impulse : Vector2 #

[View source]
def normal : Vector2 #

[View source]
def pos : Vector2 #

[View source]