struct Eagle::Physics3D::Manifold

Overview

The result of a collision test: separation normal, depth and contact points.

Defined in:

eagle/physics/physics3d.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(normal : Eagle::Vec3, penetration : Float32, contacts : Array(Eagle::Vec3)) #

Creates a manifold.


Instance Method Detail

def contacts : Array(Vec3) #

Contact points in world space.


def normal : Vec3 #

Unit normal pointing from A to B.


def penetration : Float32 #

Overlap depth.