WoopWoop-Docs
Loading...
Searching...
No Matches
Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
WoopWoop.PointCollider Class Reference
Inheritance diagram for WoopWoop.PointCollider:
WoopWoop.Component

Public Member Functions

override void Update (float deltaTime)
 Called every frame to update the component's state.
 
bool CheckCollision (Vector2 point)
 
override void OnDrawGizmo ()
 Tells the renderer how to draw the object's editor gizmos.
 
- Public Member Functions inherited from WoopWoop.Component
void Attach (Entity entity)
 Attaches the component to an entity.
 
virtual void Awake ()
 Awake is called when the component is initialized, regardless of whether or not the script is enabled.
 
virtual void Start ()
 Called when the component is started if it's enabled.
 
virtual void OnEndOfFrame ()
 Called on the end of every frame.
 
virtual void Stop ()
 Called when the component is removed.
 

Properties

Vector2 Size [get, set]
 
- Properties inherited from WoopWoop.Component
Entity entity [get, private set]
 The entity to which this component is attached.
 
Transform transform [get]
 The transform of the entity to which this component is attached.
 
bool Enabled = true [get, set]
 Determines whether the component is enabled.
 

Private Member Functions

Vector2 RotateVector (Vector2 vector, float angle)
 
Vector2 SetSize (Vector2 newSize)
 

Private Attributes

Vector2 size = new(1, 1)
 

Member Function Documentation

◆ CheckCollision()

bool WoopWoop.PointCollider.CheckCollision ( Vector2 point)

◆ OnDrawGizmo()

override void WoopWoop.PointCollider.OnDrawGizmo ( )
virtual

Tells the renderer how to draw the object's editor gizmos.

Reimplemented from WoopWoop.Component.

◆ RotateVector()

Vector2 WoopWoop.PointCollider.RotateVector ( Vector2 vector,
float angle )
private

◆ SetSize()

Vector2 WoopWoop.PointCollider.SetSize ( Vector2 newSize)
private

◆ Update()

override void WoopWoop.PointCollider.Update ( float deltaTime)
virtual

Called every frame to update the component's state.

Reimplemented from WoopWoop.Component.

Member Data Documentation

◆ size

Vector2 WoopWoop.PointCollider.size = new(1, 1)
private

Property Documentation

◆ Size

Vector2 WoopWoop.PointCollider.Size
getset

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