Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Forces.SimpleZone Class Reference

Simple collision zone. More...

Inheritance diagram for Forces.SimpleZone:
Forces.SimpleFrictionPocket Forces.SimpleLiquid

Public Attributes

Vector2 Size = new Vector2(100, 100)
 Zone size More...
 

Protected Member Functions

void DrawZone (Color color)
 Draw zone. More...
 

Protected Attributes

Font defaultFont
 Default font More...
 

Detailed Description

Simple collision zone.

Definition at line 9 of file SimpleZone.cs.

Member Function Documentation

◆ DrawZone()

void Forces.SimpleZone.DrawZone ( Color  color)
inlineprotected

Draw zone.

Parameters
colorColor

Definition at line 21 of file SimpleZone.cs.

22  {
23  DrawRect(new Rect2(Vector2.Zero - (Size / 2), Size), color.WithAlpha(200));
24  }
Vector2 Size
Zone size
Definition: SimpleZone.cs:12

Member Data Documentation

◆ defaultFont

Font Forces.SimpleZone.defaultFont
protected

Default font

Definition at line 15 of file SimpleZone.cs.

◆ Size

Vector2 Forces.SimpleZone.Size = new Vector2(100, 100)

Zone size

Definition at line 12 of file SimpleZone.cs.


The documentation for this class was generated from the following file: