Cuboid
mesh with the dimension of self
Does not use the position of self
, but it can be given to an Actor
.
# Create a `Cuboid` mesh with the dimension of `self`
#
# Does not use the position of `self`, but it can be given to an `Actor`.
fun to_mesh: Cuboid
do
var width = right.to_f-left.to_f
var height = top.to_f-bottom.to_f
var depth = front.to_f-back.to_f
return new Cuboid(width, height, depth)
end
lib/gamnit/depth/more_meshes.nit:164,2--173,4