Curve

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Member Functions

int add_point ( Vector2 position, float left_tangent=0, float right_tangent=0, int left_mode=0, int right_mode=0 )
void bake ( )
void clean_dupes ( )
void clear_points ( )
int get_point_left_mode ( int index ) const
float get_point_left_tangent ( int index ) const
Vector2 get_point_position ( int index ) const
int get_point_right_mode ( int index ) const
float get_point_right_tangent ( int index ) const
float interpolate ( float offset ) const
float interpolate_baked ( float offset )
void remove_point ( int index )
void set_point_left_mode ( int index, int mode )
void set_point_left_tangent ( int index, float tangent )
int set_point_offset ( int index, float offset )
void set_point_right_mode ( int index, int mode )
void set_point_right_tangent ( int index, float tangent )
void set_point_value ( int index, float y )

Signals

  • range_changed ( )

Member Variables

Numeric Constants

  • TANGENT_FREE = 0
  • TANGENT_LINEAR = 1
  • TANGENT_MODE_COUNT = 2

Member Function Description

  • void bake ( )
  • void clean_dupes ( )
  • void clear_points ( )
  • int get_point_left_mode ( int index ) const
  • float get_point_left_tangent ( int index ) const
  • int get_point_right_mode ( int index ) const
  • float get_point_right_tangent ( int index ) const
  • void remove_point ( int index )
  • void set_point_left_mode ( int index, int mode )
  • void set_point_left_tangent ( int index, float tangent )
  • void set_point_right_mode ( int index, int mode )
  • void set_point_right_tangent ( int index, float tangent )
  • void set_point_value ( int index, float y )