Skip to content

Latest commit

 

History

History
99 lines (55 loc) · 1.8 KB

script_brush_event.md

File metadata and controls

99 lines (55 loc) · 1.8 KB

Class: script_brush_event

Represents the event context passed to brush click events.

Table of contents

Constructors

Methods

Constructors

constructor

+ new script_brush_event(): script_brush_event

Returns: script_brush_event

Methods

dt

dt(): number

Returns the delta-time since the last update frame

Returns: number


inner_radius

inner_radius(): number

Returns the current inner radius configured in the settings panel

Returns: number


outer_radius

outer_radius(): number

Returns the current outer radius configured in the settings panel

Returns: number


pos

pos(): vector_3d

Returns world position of this click event. i.e. the world position where the user clicked, held or released a mouse button

Returns: vector_3d


set_inner_radius

set_inner_radius(value: number): any

Sets the outer radius in the settings panel for this brush

Parameters:

Name Type Description
value number should be between 0-1

Returns: any


set_outer_radius

set_outer_radius(value: number): any

Sets the outer radius in the settings panel for this brush

Parameters:

Name Type
value number

Returns: any