CollisionObject2D

Inherits: Node2D < CanvasItem < Node < Object

Inherited By: Area2D, PhysicsBody2D

There is currently no description for this class. Please help us by contributing one!

Properties

int

collision_layer

1

int

collision_mask

1

float

collision_priority

1.0

DisableMode

disable_mode

0

bool

input_pickable

true

Methods

void

_input_event ( Viewport viewport, InputEvent event, int shape_idx ) virtual

void

_mouse_enter ( ) virtual

void

_mouse_exit ( ) virtual

void

_mouse_shape_enter ( int shape_idx ) virtual

void

_mouse_shape_exit ( int shape_idx ) virtual

int

create_shape_owner ( Object owner )

bool

get_collision_layer_value ( int layer_number ) const

bool

get_collision_mask_value ( int layer_number ) const

RID

get_rid ( ) const

float

get_shape_owner_one_way_collision_margin ( int owner_id ) const

PackedInt32Array

get_shape_owners ( )

bool

is_shape_owner_disabled ( int owner_id ) const

bool

is_shape_owner_one_way_collision_enabled ( int owner_id ) const

void

remove_shape_owner ( int owner_id )

void

set_collision_layer_value ( int layer_number, bool value )

void

set_collision_mask_value ( int layer_number, bool value )

int

shape_find_owner ( int shape_index ) const

void

shape_owner_add_shape ( int owner_id, Shape2D shape )

void

shape_owner_clear_shapes ( int owner_id )

Object

shape_owner_get_owner ( int owner_id ) const

Shape2D

shape_owner_get_shape ( int owner_id, int shape_id ) const

int

shape_owner_get_shape_count ( int owner_id ) const

int

shape_owner_get_shape_index ( int owner_id, int shape_id ) const

Transform2D

shape_owner_get_transform ( int owner_id ) const

void

shape_owner_remove_shape ( int owner_id, int shape_id )

void

shape_owner_set_disabled ( int owner_id, bool disabled )

void

shape_owner_set_one_way_collision ( int owner_id, bool enable )

void

shape_owner_set_one_way_collision_margin ( int owner_id, float margin )

void

shape_owner_set_transform ( int owner_id, Transform2D transform )


Signals

input_event ( Node viewport, InputEvent event, int shape_idx )

There is currently no description for this signal. Please help us by contributing one!


mouse_entered ( )

There is currently no description for this signal. Please help us by contributing one!


mouse_exited ( )

There is currently no description for this signal. Please help us by contributing one!


mouse_shape_entered ( int shape_idx )

There is currently no description for this signal. Please help us by contributing one!


mouse_shape_exited ( int shape_idx )

There is currently no description for this signal. Please help us by contributing one!


Enumerations

enum DisableMode:

DisableMode DISABLE_MODE_REMOVE = 0

There is currently no description for this enum. Please help us by contributing one!

DisableMode DISABLE_MODE_MAKE_STATIC = 1

There is currently no description for this enum. Please help us by contributing one!

DisableMode DISABLE_MODE_KEEP_ACTIVE = 2

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

int collision_layer = 1

  • void set_collision_layer ( int value )

  • int get_collision_layer ( )

There is currently no description for this property. Please help us by contributing one!


int collision_mask = 1

  • void set_collision_mask ( int value )

  • int get_collision_mask ( )

There is currently no description for this property. Please help us by contributing one!


float collision_priority = 1.0

  • void set_collision_priority ( float value )

  • float get_collision_priority ( )

There is currently no description for this property. Please help us by contributing one!


DisableMode disable_mode = 0

There is currently no description for this property. Please help us by contributing one!


bool input_pickable = true

  • void set_pickable ( bool value )

  • bool is_pickable ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void _input_event ( Viewport viewport, InputEvent event, int shape_idx ) virtual

There is currently no description for this method. Please help us by contributing one!


void _mouse_enter ( ) virtual

There is currently no description for this method. Please help us by contributing one!


void _mouse_exit ( ) virtual

There is currently no description for this method. Please help us by contributing one!


void _mouse_shape_enter ( int shape_idx ) virtual

There is currently no description for this method. Please help us by contributing one!


void _mouse_shape_exit ( int shape_idx ) virtual

There is currently no description for this method. Please help us by contributing one!


int create_shape_owner ( Object owner )

There is currently no description for this method. Please help us by contributing one!


bool get_collision_layer_value ( int layer_number ) const

There is currently no description for this method. Please help us by contributing one!


bool get_collision_mask_value ( int layer_number ) const

There is currently no description for this method. Please help us by contributing one!


RID get_rid ( ) const

There is currently no description for this method. Please help us by contributing one!


float get_shape_owner_one_way_collision_margin ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array get_shape_owners ( )

There is currently no description for this method. Please help us by contributing one!


bool is_shape_owner_disabled ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


bool is_shape_owner_one_way_collision_enabled ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


void remove_shape_owner ( int owner_id )

There is currently no description for this method. Please help us by contributing one!


void set_collision_layer_value ( int layer_number, bool value )

There is currently no description for this method. Please help us by contributing one!


void set_collision_mask_value ( int layer_number, bool value )

There is currently no description for this method. Please help us by contributing one!


int shape_find_owner ( int shape_index ) const

There is currently no description for this method. Please help us by contributing one!


void shape_owner_add_shape ( int owner_id, Shape2D shape )

There is currently no description for this method. Please help us by contributing one!


void shape_owner_clear_shapes ( int owner_id )

There is currently no description for this method. Please help us by contributing one!


Object shape_owner_get_owner ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


Shape2D shape_owner_get_shape ( int owner_id, int shape_id ) const

There is currently no description for this method. Please help us by contributing one!


int shape_owner_get_shape_count ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


int shape_owner_get_shape_index ( int owner_id, int shape_id ) const

There is currently no description for this method. Please help us by contributing one!


Transform2D shape_owner_get_transform ( int owner_id ) const

There is currently no description for this method. Please help us by contributing one!


void shape_owner_remove_shape ( int owner_id, int shape_id )

There is currently no description for this method. Please help us by contributing one!


void shape_owner_set_disabled ( int owner_id, bool disabled )

There is currently no description for this method. Please help us by contributing one!


void shape_owner_set_one_way_collision ( int owner_id, bool enable )

There is currently no description for this method. Please help us by contributing one!


void shape_owner_set_one_way_collision_margin ( int owner_id, float margin )

There is currently no description for this method. Please help us by contributing one!


void shape_owner_set_transform ( int owner_id, Transform2D transform )

There is currently no description for this method. Please help us by contributing one!