# Rally Rush: src/drone_target.hpp Source File

Loading...
Searching...
No Matches
drone_target.hpp
Go to the documentation of this file.
#ifndef ENEMY_TARGET_BODY_HPP
#define ENEMY_TARGET_BODY_HPP
#include <godot_cpp/classes/rigid_body3d.hpp>
namespace godot {
class EnemyTargetBody : public RigidBody3D {
GDCLASS(EnemyTargetBody, RigidBody3D);
static void _bind_methods();
public:
virtual void _enter_tree() override;
void damage();
};
}
#endif // !ENEMY_TARGET_BODY_HPP
godot::EnemyTargetBody
Collider signifying which part of an enemy can be targeted. Used only for drones because their "real"...
Definition drone_target.hpp:8
godot::EnemyTargetBody::_bind_methods
static void _bind_methods()
Bind damage function.
Definition drone_target.cpp:6
godot::EnemyTargetBody::_enter_tree
virtual void _enter_tree() override
Set rigidbody as kinematic.
Definition drone_target.cpp:11
godot::EnemyTargetBody::damage
void damage()
Destroy parent object.
Definition drone_target.cpp:16
godot::EnemyTargetBody::GDCLASS
GDCLASS(EnemyTargetBody, RigidBody3D)
godot
Definition beacon_powerup.cpp:6