Method: Actor#solid

Defined in:
lib/fantasy/actor.rb

#solidBoolean

When true the Actor will cause and respond to collisions.

When false the Actor won't cause neither respond to collisions.

Default true.

Examples:

Set solid

actor = Actor.new("image")
actor.solid = false

Parameters:

  • solid (true, false)

    only true or false

Returns:

  • (Boolean)

    the actual solid value



150
151
152
# File 'lib/fantasy/actor.rb', line 150

def solid
  @solid
end