PhysicsCircle2DNode(position, radius, velocity, rotation, density, bounciness, dynamic, solid, gravity_scale, outline, outline_color, collision_mask, layer)
Node that is affected by physics. Usually other nodes are added as children to this node
Parameters:
position [value: Vector2, type: Vector2]
radius [value: any, type: float]
velocity [value: Vector2, type: Vector2]
rotation [value: any, type: float]
density [value: any, type: float]
bounciness [value: any, type: float]
dynamic [value: True or False, type: boolean]
solid [value: True or False, type: boolean]
gravity_scale [value: Vector2, type: Vector2]
outline [value: True or False (default: False), type: boolean]
outline_color [value: Color, type: Color]
collision_mask [value: 32-bit bitmask (nodes with the same true bits will collide, set to 1 by default), type: int]
layer [value: 0 ~ 127, type: int]
Attributes:
add_child(child) [returns: None]
get_child(index) [returns: Node]
get_child_count() [returns: 0 or positive integer]
mark_destroy() [returns: None]
mark_destroy_all() [returns: None]
mark_destroy_children() [returns: None]
remove_child(child) [returns: None]
tick(self, dt) [returns: None]
enable_collision_layer(layer) [returns: None]
disable_collision_layer(layer) [returns: None]
position [value: Vector2, type: Vector2]
global_position [value: Vector2 (read-only), type: Vector2]
radius [value: any, type: float]
velocity [value: Vector2, type: Vector2]
rotation [value: any, type: float]
density [value: any, type: float]
bounciness [value: any, type: float]
dynamic [value: True or False, type: boolean]
solid [value: True or False, type: boolean]
gravity_scale [value: Vector2, type: Vector2]
outline [value: True or False (default: False), type: boolean]
outline_color [value: Color, type: Color]
collision_mask [value: 32-bit bitmask (nodes with the same true bits will collide, set to 1 by default), type: int]
on_collide(self, contact) [returns: None]
on_separate(self) [returns: None]
layer [value: 0 ~ 127, type: int]
Overrides:
physics_tick(self, dt) [returns: None] [value: function, type: function]
tick(self, dt) [returns: None] [value: function, type: function]
on_collide(self, contact) [returns: None] [value: function, type: function]
on_separate(self) [returns: None] [value: function, type: function]
file: src/nodes/2D/physics_circle_2d_node.c
landing