2017-11-04 19:52:59 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/* area_bullet.cpp */
|
|
|
|
/*************************************************************************/
|
|
|
|
/* This file is part of: */
|
|
|
|
/* GODOT ENGINE */
|
2018-01-04 23:50:27 +00:00
|
|
|
/* https://godotengine.org */
|
2017-11-04 19:52:59 +00:00
|
|
|
/*************************************************************************/
|
2022-01-03 20:27:34 +00:00
|
|
|
/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */
|
|
|
|
/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */
|
2017-11-04 19:52:59 +00:00
|
|
|
/* */
|
|
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
|
|
/* a copy of this software and associated documentation files (the */
|
|
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
|
|
/* the following conditions: */
|
|
|
|
/* */
|
|
|
|
/* The above copyright notice and this permission notice shall be */
|
|
|
|
/* included in all copies or substantial portions of the Software. */
|
|
|
|
/* */
|
|
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
#include "area_bullet.h"
|
2018-01-04 23:50:27 +00:00
|
|
|
|
2018-09-10 05:55:11 +00:00
|
|
|
#include "bullet_physics_server.h"
|
2017-11-04 19:52:59 +00:00
|
|
|
#include "bullet_types_converter.h"
|
|
|
|
#include "bullet_utilities.h"
|
|
|
|
#include "collision_object_bullet.h"
|
|
|
|
#include "space_bullet.h"
|
|
|
|
|
2018-01-04 23:50:27 +00:00
|
|
|
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
|
|
|
|
#include <btBulletCollisionCommon.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
@author AndreaCatania
|
|
|
|
*/
|
|
|
|
|
2017-12-06 20:36:34 +00:00
|
|
|
AreaBullet::AreaBullet() :
|
2020-05-12 15:01:17 +00:00
|
|
|
RigidCollisionObjectBullet(CollisionObjectBullet::TYPE_AREA) {
|
2017-11-04 19:52:59 +00:00
|
|
|
btGhost = bulletnew(btGhostObject);
|
2018-10-06 14:50:10 +00:00
|
|
|
reload_shapes();
|
2017-11-04 19:52:59 +00:00
|
|
|
setupBulletCollisionObject(btGhost);
|
|
|
|
/// Collision objects with a callback still have collision response with dynamic rigid bodies.
|
|
|
|
/// In order to use collision objects as trigger, you have to disable the collision response.
|
|
|
|
set_collision_enabled(false);
|
|
|
|
|
2020-05-14 14:41:43 +00:00
|
|
|
for (int i = 0; i < 5; ++i) {
|
2017-11-04 19:52:59 +00:00
|
|
|
call_event_res_ptr[i] = &call_event_res[i];
|
2020-05-14 14:41:43 +00:00
|
|
|
}
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AreaBullet::~AreaBullet() {
|
2018-04-09 07:33:29 +00:00
|
|
|
// signal are handled by godot, so just clear without notify
|
2020-10-10 15:35:40 +00:00
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
overlapping_shapes[i].other_object->on_exit_area(this);
|
2020-05-14 14:41:43 +00:00
|
|
|
}
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::dispatch_callbacks() {
|
2020-10-08 10:16:12 +00:00
|
|
|
if (!isScratched) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
isScratched = false;
|
2017-11-04 19:52:59 +00:00
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
// Reverse order so items can be removed.
|
|
|
|
for (int i = overlapping_shapes.size() - 1; i >= 0; i--) {
|
|
|
|
OverlappingShapeData &overlapping_shape = overlapping_shapes.write[i];
|
2017-11-04 19:52:59 +00:00
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
switch (overlapping_shape.state) {
|
2017-11-04 19:52:59 +00:00
|
|
|
case OVERLAP_STATE_ENTER:
|
2020-10-10 15:35:40 +00:00
|
|
|
overlapping_shape.state = OVERLAP_STATE_INSIDE;
|
|
|
|
call_event(overlapping_shape, PhysicsServer3D::AREA_BODY_ADDED);
|
|
|
|
if (_overlapping_shape_count(overlapping_shape.other_object) == 1) {
|
|
|
|
// This object's first shape being added.
|
|
|
|
overlapping_shape.other_object->on_enter_area(this);
|
|
|
|
}
|
2017-11-04 19:52:59 +00:00
|
|
|
break;
|
|
|
|
case OVERLAP_STATE_EXIT:
|
2020-10-10 15:35:40 +00:00
|
|
|
call_event(overlapping_shape, PhysicsServer3D::AREA_BODY_REMOVED);
|
|
|
|
if (_overlapping_shape_count(overlapping_shape.other_object) == 1) {
|
|
|
|
// This object's last shape being removed.
|
|
|
|
overlapping_shape.other_object->on_exit_area(this);
|
|
|
|
}
|
2021-07-03 22:17:03 +00:00
|
|
|
overlapping_shapes.remove_at(i); // Remove after callback
|
2017-11-04 19:52:59 +00:00
|
|
|
break;
|
2020-09-27 15:10:12 +00:00
|
|
|
case OVERLAP_STATE_INSIDE: {
|
2021-11-21 06:51:44 +00:00
|
|
|
if (overlapping_shape.other_object->getType() == TYPE_RIGID_BODY) {
|
|
|
|
RigidBodyBullet *body = static_cast<RigidBodyBullet *>(overlapping_shape.other_object);
|
2020-09-27 15:10:12 +00:00
|
|
|
body->scratch_space_override_modificator();
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2018-09-26 11:13:56 +00:00
|
|
|
case OVERLAP_STATE_DIRTY:
|
|
|
|
break;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
void AreaBullet::call_event(const OverlappingShapeData &p_overlapping_shape, PhysicsServer3D::AreaBodyStatus p_status) {
|
|
|
|
InOutEventCallback &event = eventsCallbacks[static_cast<int>(p_overlapping_shape.other_object->getType())];
|
2017-11-04 19:52:59 +00:00
|
|
|
|
2021-10-31 21:45:58 +00:00
|
|
|
if (!event.event_callback.is_valid()) {
|
|
|
|
event.event_callback = Callable();
|
2017-11-04 19:52:59 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_event_res[0] = p_status;
|
2020-10-10 15:35:40 +00:00
|
|
|
call_event_res[1] = p_overlapping_shape.other_object->get_self(); // RID
|
|
|
|
call_event_res[2] = p_overlapping_shape.other_object->get_instance_id(); // Object ID
|
|
|
|
call_event_res[3] = p_overlapping_shape.other_shape_id; // Other object's shape ID
|
|
|
|
call_event_res[4] = p_overlapping_shape.our_shape_id; // This area's shape ID
|
2017-11-04 19:52:59 +00:00
|
|
|
|
2020-02-19 19:27:19 +00:00
|
|
|
Callable::CallError outResp;
|
2021-10-31 21:45:58 +00:00
|
|
|
Variant ret;
|
|
|
|
event.event_callback.call((const Variant **)call_event_res, 5, ret, outResp);
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
int AreaBullet::_overlapping_shape_count(CollisionObjectBullet *p_other_object) {
|
|
|
|
int count = 0;
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
if (overlapping_shapes[i].other_object == p_other_object) {
|
|
|
|
count++;
|
|
|
|
}
|
2020-05-14 14:41:43 +00:00
|
|
|
}
|
2020-10-10 15:35:40 +00:00
|
|
|
return count;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
int AreaBullet::_find_overlapping_shape(CollisionObjectBullet *p_other_object, uint32_t p_other_shape_id, uint32_t p_our_shape_id) {
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
const OverlappingShapeData &overlapping_shape = overlapping_shapes[i];
|
|
|
|
if (overlapping_shape.other_object == p_other_object && overlapping_shape.other_shape_id == p_other_shape_id && overlapping_shape.our_shape_id == p_our_shape_id) {
|
|
|
|
return i;
|
2020-05-14 14:41:43 +00:00
|
|
|
}
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
2020-10-10 15:35:40 +00:00
|
|
|
return -1;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
void AreaBullet::mark_all_overlaps_dirty() {
|
|
|
|
OverlappingShapeData *overlapping_shapes_w = overlapping_shapes.ptrw();
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
// Don't overwrite OVERLAP_STATE_ENTER state.
|
|
|
|
if (overlapping_shapes_w[i].state != OVERLAP_STATE_ENTER) {
|
|
|
|
overlapping_shapes_w[i].state = OVERLAP_STATE_DIRTY;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-10 15:35:40 +00:00
|
|
|
void AreaBullet::mark_object_overlaps_inside(CollisionObjectBullet *p_other_object) {
|
|
|
|
OverlappingShapeData *overlapping_shapes_w = overlapping_shapes.ptrw();
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
if (overlapping_shapes_w[i].other_object == p_other_object && overlapping_shapes_w[i].state == OVERLAP_STATE_DIRTY) {
|
|
|
|
overlapping_shapes_w[i].state = OVERLAP_STATE_INSIDE;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-10 15:35:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::set_overlap(CollisionObjectBullet *p_other_object, uint32_t p_other_shape_id, uint32_t p_our_shape_id) {
|
|
|
|
int i = _find_overlapping_shape(p_other_object, p_other_shape_id, p_our_shape_id);
|
|
|
|
if (i == -1) { // Not found, create new one.
|
|
|
|
OverlappingShapeData overlapping_shape(p_other_object, OVERLAP_STATE_ENTER, p_other_shape_id, p_our_shape_id);
|
|
|
|
overlapping_shapes.push_back(overlapping_shape);
|
|
|
|
p_other_object->notify_new_overlap(this);
|
|
|
|
isScratched = true;
|
|
|
|
} else {
|
|
|
|
overlapping_shapes.ptrw()[i].state = OVERLAP_STATE_INSIDE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::mark_all_dirty_overlaps_as_exit() {
|
|
|
|
OverlappingShapeData *overlapping_shapes_w = overlapping_shapes.ptrw();
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
if (overlapping_shapes[i].state == OVERLAP_STATE_DIRTY) {
|
|
|
|
overlapping_shapes_w[i].state = OVERLAP_STATE_EXIT;
|
|
|
|
isScratched = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::remove_object_overlaps(CollisionObjectBullet *p_object) {
|
|
|
|
// Reverse order so items can be removed.
|
|
|
|
for (int i = overlapping_shapes.size() - 1; i >= 0; i--) {
|
|
|
|
if (overlapping_shapes[i].other_object == p_object) {
|
2021-07-03 22:17:03 +00:00
|
|
|
overlapping_shapes.remove_at(i);
|
2020-10-10 15:35:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::clear_overlaps() {
|
|
|
|
for (int i = 0; i < overlapping_shapes.size(); i++) {
|
|
|
|
call_event(overlapping_shapes[i], PhysicsServer3D::AREA_BODY_REMOVED);
|
|
|
|
overlapping_shapes[i].other_object->on_exit_area(this);
|
|
|
|
}
|
|
|
|
overlapping_shapes.clear();
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::set_monitorable(bool p_monitorable) {
|
|
|
|
monitorable = p_monitorable;
|
2020-09-24 14:11:06 +00:00
|
|
|
updated = true;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool AreaBullet::is_monitoring() const {
|
|
|
|
return get_godot_object_flags() & GOF_IS_MONITORING_AREA;
|
|
|
|
}
|
|
|
|
|
2018-10-06 14:50:10 +00:00
|
|
|
void AreaBullet::main_shape_changed() {
|
2019-11-07 09:37:44 +00:00
|
|
|
CRASH_COND(!get_main_shape());
|
2018-10-06 14:50:10 +00:00
|
|
|
btGhost->setCollisionShape(get_main_shape());
|
2020-09-24 14:11:06 +00:00
|
|
|
updated = true;
|
2018-09-06 16:19:05 +00:00
|
|
|
}
|
|
|
|
|
2020-10-08 10:22:59 +00:00
|
|
|
void AreaBullet::reload_body() {
|
2017-11-04 19:52:59 +00:00
|
|
|
if (space) {
|
|
|
|
space->remove_area(this);
|
|
|
|
space->add_area(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::set_space(SpaceBullet *p_space) {
|
|
|
|
// Clear the old space if there is one
|
|
|
|
if (space) {
|
2020-10-10 15:35:40 +00:00
|
|
|
clear_overlaps();
|
2020-10-08 10:16:12 +00:00
|
|
|
isScratched = false;
|
2017-11-04 19:52:59 +00:00
|
|
|
|
|
|
|
// Remove this object form the physics world
|
|
|
|
space->remove_area(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
space = p_space;
|
|
|
|
|
|
|
|
if (space) {
|
2020-10-08 10:22:59 +00:00
|
|
|
space->add_area(this);
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-08 10:16:12 +00:00
|
|
|
void AreaBullet::on_collision_filters_change() {
|
2017-11-04 19:52:59 +00:00
|
|
|
if (space) {
|
|
|
|
space->reload_collision_filters(this);
|
|
|
|
}
|
2020-09-24 14:11:06 +00:00
|
|
|
updated = true;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
2020-03-27 18:21:27 +00:00
|
|
|
void AreaBullet::set_param(PhysicsServer3D::AreaParameter p_param, const Variant &p_value) {
|
2017-11-04 19:52:59 +00:00
|
|
|
switch (p_param) {
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_gravityMag(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_VECTOR:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_gravityVec(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_LINEAR_DAMP:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_linearDump(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_ANGULAR_DAMP:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_angularDump(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_PRIORITY:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_priority(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_IS_POINT:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_gravityPoint(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_DISTANCE_SCALE:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_gravityPointDistanceScale(p_value);
|
|
|
|
break;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_POINT_ATTENUATION:
|
2017-11-04 19:52:59 +00:00
|
|
|
set_spOv_gravityPointAttenuation(p_value);
|
|
|
|
break;
|
|
|
|
default:
|
2019-11-07 08:44:15 +00:00
|
|
|
WARN_PRINT("Area doesn't support this parameter in the Bullet backend: " + itos(p_param));
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
2021-11-21 06:51:44 +00:00
|
|
|
isScratched = true;
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
2020-03-27 18:21:27 +00:00
|
|
|
Variant AreaBullet::get_param(PhysicsServer3D::AreaParameter p_param) const {
|
2017-11-04 19:52:59 +00:00
|
|
|
switch (p_param) {
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_gravityMag;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_VECTOR:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_gravityVec;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_LINEAR_DAMP:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_linearDump;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_ANGULAR_DAMP:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_angularDump;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_PRIORITY:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_priority;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_IS_POINT:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_gravityPoint;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_DISTANCE_SCALE:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_gravityPointDistanceScale;
|
2020-03-27 18:21:27 +00:00
|
|
|
case PhysicsServer3D::AREA_PARAM_GRAVITY_POINT_ATTENUATION:
|
2017-11-04 19:52:59 +00:00
|
|
|
return spOv_gravityPointAttenuation;
|
|
|
|
default:
|
2019-11-07 08:44:15 +00:00
|
|
|
WARN_PRINT("Area doesn't support this parameter in the Bullet backend: " + itos(p_param));
|
2017-11-04 19:52:59 +00:00
|
|
|
return Variant();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-31 21:45:58 +00:00
|
|
|
void AreaBullet::set_event_callback(Type p_callbackObjectType, const Callable &p_callback) {
|
2017-11-04 19:52:59 +00:00
|
|
|
InOutEventCallback &ev = eventsCallbacks[static_cast<int>(p_callbackObjectType)];
|
2021-10-31 21:45:58 +00:00
|
|
|
ev.event_callback = p_callback;
|
2017-11-04 19:52:59 +00:00
|
|
|
|
|
|
|
/// Set if monitoring
|
2021-10-31 21:45:58 +00:00
|
|
|
if (!eventsCallbacks[0].event_callback.is_null() || !eventsCallbacks[1].event_callback.is_null()) {
|
2017-11-04 19:52:59 +00:00
|
|
|
set_godot_object_flags(get_godot_object_flags() | GOF_IS_MONITORING_AREA);
|
|
|
|
} else {
|
|
|
|
set_godot_object_flags(get_godot_object_flags() & (~GOF_IS_MONITORING_AREA));
|
2021-11-21 06:51:44 +00:00
|
|
|
clear_overlaps();
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AreaBullet::has_event_callback(Type p_callbackObjectType) {
|
2021-10-31 21:45:58 +00:00
|
|
|
return !eventsCallbacks[static_cast<int>(p_callbackObjectType)].event_callback.is_null();
|
2017-11-04 19:52:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::on_enter_area(AreaBullet *p_area) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void AreaBullet::on_exit_area(AreaBullet *p_area) {
|
|
|
|
CollisionObjectBullet::on_exit_area(p_area);
|
|
|
|
}
|