Skip to content

WeaponCollisionUtility ​

Inherits: RefCounted

The collision shapes the weapons can use: a list of named templates (capsules of several sizes) with a description, which an entity or a weapon asks for by name. get_collision_shape_template gives the shape.

Variables ​

Dictionaryweapon_collision_templates{}

Methods ​

Array[String]get_collision_template_names() static
Shape3Dget_collision_shape_template( template_name: String ) static
boolcollision_template_exists( template_name: String ) static
Array[Dictionary]get_all_collision_template_info() static

Variable descriptions ​

Dictionary weapon_collision_templates = ​

The named collision shapes weapons can use.

Method descriptions ​

Array[String] get_collision_template_names() ​

Get all available collision template names

Shape3D get_collision_shape_template( template_name: String ) ​

Get collision shape by template name

bool collision_template_exists( template_name: String ) ​

Check if collision template exists

Array[Dictionary] get_all_collision_template_info() ​

Get all collision template info for editor dropdowns