VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
PhysicsObject Class Referenceabstract

Abstract class that governs all physics objects. More...

Inheritance diagram for PhysicsObject:
Collaboration diagram for PhysicsObject:

Public Member Functions

virtual void ChangeOutlineColor (Color color)
 Changes the color of the outline, but doesnt enable it.
virtual void EnableTarget ()
 Enables the outline of the object.
virtual void DisableTarget ()
 Disables the outline of the object.

Data Fields

Collider2D collider
Rigidbody2D rb
PhysicsObjectType physicsObjectType

Protected Attributes

Outline2D _outline

Detailed Description

Abstract class that governs all physics objects.

Member Function Documentation

◆ ChangeOutlineColor()

virtual void PhysicsObject.ChangeOutlineColor ( Color color)
inlinevirtual

Changes the color of the outline, but doesnt enable it.

Mind you, the sprite needs to have padding for the outline to work

Parameters
colorThe target color to set

◆ DisableTarget()

virtual void PhysicsObject.DisableTarget ( )
inlinevirtual

Disables the outline of the object.

Mind you, the sprite needs to have padding for the outline to work

◆ EnableTarget()

virtual void PhysicsObject.EnableTarget ( )
inlinevirtual

Enables the outline of the object.

Mind you, the sprite needs to have padding for the outline to work

Field Documentation

◆ _outline

Outline2D PhysicsObject._outline
protected

◆ collider

Collider2D PhysicsObject.collider

◆ physicsObjectType

PhysicsObjectType PhysicsObject.physicsObjectType

◆ rb

Rigidbody2D PhysicsObject.rb

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