Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | looote |
In a scene "model " of a KinematicBody2D with a CollisionShape2D (shape is a Circle)
The script is :
extends KinematicBody2D
onready var collision = $CollisionShape2D
export var SIZE = 0
func _ready():
collision.shape.set_radius(SIZE)
In a scene “world” i have 2 instance of “model”:
- one with SIZE = 50
- one wit SIZE = 100
Then why the size of the collision is the same for both ? (50 or 100, depending of the order in the tree) is this supposed to work like that ?
I am new to godot and coding in general so maybe i’m all wrong.
I cant reproduce that behaviour… can you provide you project-folder?
whiteshampoo | 2020-05-28 06:07