Endstar LUA API Documentation
Loading...
Searching...
No Matches
BouncePad Class Reference

Base Type that applies a physics force to objects that overlap it. More...

Public Member Functions

void SetBounceHeight (Context instigator, int value)
 Set how high objects are bounced.
 
int GetBounceHeight ()
 Get the current bounce height setting.
 
void Activate (Context instigator)
 Enable bouncing behavior.
 
void Deactivate (Context instigator)
 Disable bouncing behavior.
 
bool GetActive ()
 Check if the Bounce Pad's bouncing behavior is activated.
 

Detailed Description

Base Type that applies a physics force to objects that overlap it.

Member Function Documentation

◆ Activate()

void Activate ( Context instigator)

Enable bouncing behavior.

Parameters
instigatorThe source context triggering this change

◆ Deactivate()

void Deactivate ( Context instigator)

Disable bouncing behavior.

Parameters
instigator

◆ GetActive()

bool GetActive ( )

Check if the Bounce Pad's bouncing behavior is activated.

Returns
True if activated

◆ GetBounceHeight()

int GetBounceHeight ( )

Get the current bounce height setting.

Returns
Current bounce height in units.

◆ SetBounceHeight()

void SetBounceHeight ( Context instigator,
int value )

Set how high objects are bounced.

Parameters
instigatorThe source context triggering this change
valueThe height value in units