returnTTR("CollisionPolygon2D only serves to provide a collision shape to a CollisionObject2D derived node. Please only use it as a child of Area2D, StaticBody2D, RigidBody2D, KinematicBody2D, etc. to give them a shape.");
}
if(polygon.empty()){
returnTTR("An empty CollisionPolygon2D has no effect on collision.");
returnTTR("CollisionShape2D only serves to provide a collision shape to a CollisionObject2D derived node. Please only use it as a child of Area2D, StaticBody2D, RigidBody2D, KinematicBody2D, etc. to give them a shape.");
}
if(!shape.is_valid()){
returnTTR("A shape must be provided for CollisionShape2D to function. Please create a shape resource for it!");
returnTTR("CollisionShape only serves to provide a collision shape to a CollisionObject derived node. Please only use it as a child of Area, StaticBody, RigidBody, KinematicBody, etc. to give them a shape.");
}
if(!shape.is_valid()){
returnTTR("A shape must be provided for CollisionShape to function. Please create a shape resource for it!");
returnTTR("CollisionPolygon only serves to provide a collision shape to a CollisionObject derived node. Please only use it as a child of Area, StaticBody, RigidBody, KinematicBody, etc. to give them a shape.");
}
if(polygon.empty()){
returnTTR("An empty CollisionPolygon has no effect on collision.");
returnTTR("Popups will hide by default unless you call popup()oranyofthepopup*()functions.Makingthemvisibleforeditingisfinethough,buttheywillhideuponrunning.");
returnTTR("This viewport is not set as render target. If you intend for it to display it's contents directly to the screen, make it a child of a Control so it can obtain a size. Otherwise, make it a RenderTarget and assign it's internal texture to some node for display.");