Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Member Functions | List of all members
Examples.Chapter5.C5Example9 Class Reference

Example 5.9 - Collision Listening. More...

Inheritance diagram for Examples.Chapter5.C5Example9:
Examples.IExample

Public Member Functions

string GetSummary ()
 Output a summary text More...
 

Detailed Description

Example 5.9 - Collision Listening.

Custom SimpleBall changing color when colliding with something. Uses body_entered and body_exited signals, with ContactMonitor and ContactsReported.

Definition at line 12 of file C5Example9.cs.

Member Function Documentation

◆ GetSummary()

string Examples.Chapter5.C5Example9.GetSummary ( )
inline

Output a summary text

Returns
Summary text

Implements Examples.IExample.

Definition at line 14 of file C5Example9.cs.

15  {
16  return "Example 5.9:\n"
17  + "Collision Listening\n\n"
18  + "Touch screen to spawn balls";
19  }

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