class Eagle::Physics3D::Sphere

Overview

A sphere collision shape.

Defined in:

eagle/physics/physics3d.cr

Constructors

Instance Method Summary

Instance methods inherited from class Eagle::Physics3D::Shape

inertia_factor : Vec3 inertia_factor, local_aabb : AABB local_aabb, offset : Vec3 offset, offset=(offset : Vec3) offset=, volume : Float32 volume

Constructor Detail

def self.new(radius : Number, offset : Vec3 = Vec3::ZERO) #

Creates a sphere.


Instance Method Detail

def inertia_factor : Vec3 #

Inertia per unit mass.


def local_aabb : AABB #

Bounds in local space.


def radius : Float32 #

Radius in meters.


def radius=(radius : Float32) #

Radius in meters.


def volume : Float32 #

Volume.