Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Raycast::Object
Inherits
Reference
<
Object
Constants
OBJECT_SIZE = 0.3
Constructors
new
(type :
Objects
, x :
Float32
, y :
Float32
, dir_x :
Float64
, dir_y :
Float64
)
Source
Class methods
is_colliding?
(x0 :
Float32
, y0 :
Float32
, x1 :
Float32
, y1 :
Float32
) :
Bool
Source
spawn
(x :
Int32
, y :
Int32
, thing :
Map::MapThings
) : self |
Nil
Source
Instance methods
dir_right_x
Source
dir_right_x=
(dir_right_x :
Float64
)
Source
dir_right_y
Source
dir_right_y=
(dir_right_y :
Float64
)
Source
dir_x
Source
dir_x=
(dir_x :
Float64
)
Source
dir_y
Source
dir_y=
(dir_y :
Float64
)
Source
flags
Source
sprite
Source
sprite=
(sprite :
Sprite
)
Source
type
Source
x
Source
x=
(x :
Float32
)
Source
y
Source
y=
(y :
Float32
)
Source
Nested types
Raycast::Object::Flags
Raycast::Object::ObjDef
Raycast::Object::Objects
Raycast::Object::Sprite