Add missing copyright headers and fix formatting
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
This commit is contained in:
parent
eb892cd0f1
commit
e4213e66b2
1527 changed files with 2313 additions and 238 deletions
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* area_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,13 +29,19 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "area_bullet.h"
|
||||
#include "BulletCollision/CollisionDispatch/btGhostObject.h"
|
||||
#include "btBulletCollisionCommon.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "collision_object_bullet.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
|
||||
#include <btBulletCollisionCommon.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
AreaBullet::AreaBullet() :
|
||||
RigidCollisionObjectBullet(CollisionObjectBullet::TYPE_AREA),
|
||||
monitorable(true),
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* area_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -37,6 +36,10 @@
|
|||
#include "servers/physics_server.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class btGhostObject;
|
||||
|
||||
class AreaBullet : public RigidCollisionObjectBullet {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* btRayShape.h */
|
||||
/* Author: AndreaCatania */
|
||||
/* btRayShape.cpp */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,9 +29,15 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "btRayShape.h"
|
||||
#include "LinearMath/btAabbUtil2.h"
|
||||
|
||||
#include "math/math_funcs.h"
|
||||
|
||||
#include <LinearMath/btAabbUtil2.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
btRayShape::btRayShape(btScalar length) :
|
||||
btConvexInternalShape(),
|
||||
m_shapeAxis(0, 0, 1) {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* btRayShape.h */
|
||||
/* Author: AndreaCatania */
|
||||
/* btRayShape.h */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -29,12 +28,16 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
/// IMPORTANT The class name and filename was created by following Bullet writing rules for an easy (eventually ) porting to bullet
|
||||
/// IMPORTANT The class name and filename was created by following Bullet writing rules for an easy (eventually) porting to bullet
|
||||
/// This shape is a custom shape that is not present to Bullet physics engine
|
||||
#ifndef BTRAYSHAPE_H
|
||||
#define BTRAYSHAPE_H
|
||||
|
||||
#include "BulletCollision/CollisionShapes/btConvexInternalShape.h"
|
||||
#include <BulletCollision/CollisionShapes/btConvexInternalShape.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
/// Ray shape around z axis
|
||||
ATTRIBUTE_ALIGNED16(class)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* bullet_physics_server.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,7 +29,7 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "bullet_physics_server.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
|
||||
#include "bullet_utilities.h"
|
||||
#include "class_db.h"
|
||||
#include "cone_twist_joint_bullet.h"
|
||||
|
|
@ -41,8 +40,15 @@
|
|||
#include "pin_joint_bullet.h"
|
||||
#include "shape_bullet.h"
|
||||
#include "slider_joint_bullet.h"
|
||||
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
#define CreateThenReturnRID(owner, ridData) \
|
||||
RID rid = owner.make_rid(ridData); \
|
||||
ridData->set_self(rid); \
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* bullet_physics_server.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -41,6 +40,10 @@
|
|||
#include "soft_body_bullet.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class BulletPhysicsServer : public PhysicsServer {
|
||||
GDCLASS(BulletPhysicsServer, PhysicsServer)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* bullet_types_converter.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -33,6 +32,10 @@
|
|||
|
||||
#include "bullet_types_converter.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
// ++ BULLET to GODOT ++++++++++
|
||||
void B_TO_G(btVector3 const &inVal, Vector3 &outVal) {
|
||||
outVal[0] = inVal[0];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* bullet_types_converter.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,14 +31,19 @@
|
|||
#ifndef BULLET_TYPES_CONVERTER_H
|
||||
#define BULLET_TYPES_CONVERTER_H
|
||||
|
||||
#include "LinearMath/btMatrix3x3.h"
|
||||
#include "LinearMath/btTransform.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
#include "core/math/matrix3.h"
|
||||
#include "core/math/transform.h"
|
||||
#include "core/math/vector3.h"
|
||||
#include "core/typedefs.h"
|
||||
|
||||
#include <LinearMath/btMatrix3x3.h>
|
||||
#include <LinearMath/btTransform.h>
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
// Bullet to Godot
|
||||
extern void B_TO_G(btVector3 const &inVal, Vector3 &outVal);
|
||||
extern void INVERT_B_TO_G(btVector3 const &inVal, Vector3 &outVal);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* bullet_utilities.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,6 +31,10 @@
|
|||
#ifndef BULLET_UTILITIES_H
|
||||
#define BULLET_UTILITIES_H
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define bulletnew(cl) \
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* collision_object_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,14 +29,20 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "collision_object_bullet.h"
|
||||
|
||||
#include "area_bullet.h"
|
||||
#include "btBulletCollisionCommon.h"
|
||||
#include "bullet_physics_server.h"
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "shape_bullet.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
#include <btBulletCollisionCommon.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
#define enableDynamicAabbTree true
|
||||
#define initialChildCapacity 1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* collision_object_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,13 +31,18 @@
|
|||
#ifndef COLLISION_OBJECT_BULLET_H
|
||||
#define COLLISION_OBJECT_BULLET_H
|
||||
|
||||
#include "LinearMath/btTransform.h"
|
||||
#include "core/vset.h"
|
||||
#include "object.h"
|
||||
#include "shape_owner_bullet.h"
|
||||
#include "transform.h"
|
||||
#include "vector3.h"
|
||||
|
||||
#include <LinearMath/btTransform.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class AreaBullet;
|
||||
class ShapeBullet;
|
||||
class btCollisionObject;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* cone_twist_joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,11 +29,17 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "cone_twist_joint_bullet.h"
|
||||
#include "BulletDynamics/ConstraintSolver/btConeTwistConstraint.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btConeTwistConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
ConeTwistJointBullet::ConeTwistJointBullet(RigidBodyBullet *rbA, RigidBodyBullet *rbB, const Transform &rbAFrame, const Transform &rbBFrame) :
|
||||
JointBullet() {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* cone_twist_joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
class ConeTwistJointBullet : public JointBullet {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* constraint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,9 +29,14 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "constraint_bullet.h"
|
||||
|
||||
#include "collision_object_bullet.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
ConstraintBullet::ConstraintBullet() :
|
||||
space(NULL),
|
||||
constraint(NULL) {}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* constraint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,10 +31,15 @@
|
|||
#ifndef CONSTRAINT_BULLET_H
|
||||
#define CONSTRAINT_BULLET_H
|
||||
|
||||
#include "BulletDynamics/ConstraintSolver/btTypedConstraint.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "rid_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btTypedConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
class SpaceBullet;
|
||||
class btTypedConstraint;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* generic_6dof_joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,11 +29,17 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "generic_6dof_joint_bullet.h"
|
||||
#include "BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
Generic6DOFJointBullet::Generic6DOFJointBullet(RigidBodyBullet *rbA, RigidBodyBullet *rbB, const Transform &frameInA, const Transform &frameInB, bool useLinearReferenceFrameA) :
|
||||
JointBullet() {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* generic_6dof_joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
class Generic6DOFJointBullet : public JointBullet {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_collision_configuration.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,10 +29,16 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "godot_collision_configuration.h"
|
||||
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
|
||||
#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h"
|
||||
|
||||
#include "godot_ray_world_algorithm.h"
|
||||
|
||||
#include <BulletCollision/BroadphaseCollision/btBroadphaseProxy.h>
|
||||
#include <BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
GodotCollisionConfiguration::GodotCollisionConfiguration(const btDiscreteDynamicsWorld *world, const btDefaultCollisionConstructionInfo &constructionInfo) :
|
||||
btDefaultCollisionConfiguration(constructionInfo) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_collision_configuration.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,7 +31,11 @@
|
|||
#ifndef GODOT_COLLISION_CONFIGURATION_H
|
||||
#define GODOT_COLLISION_CONFIGURATION_H
|
||||
|
||||
#include "BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h"
|
||||
#include <BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class btDiscreteDynamicsWorld;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_collision_dispatcher.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,8 +29,13 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "godot_collision_dispatcher.h"
|
||||
|
||||
#include "collision_object_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
const int GodotCollisionDispatcher::CASTED_TYPE_AREA = static_cast<int>(CollisionObjectBullet::TYPE_AREA);
|
||||
|
||||
GodotCollisionDispatcher::GodotCollisionDispatcher(btCollisionConfiguration *collisionConfiguration) :
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_collision_dispatcher.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -33,8 +32,13 @@
|
|||
#define GODOT_COLLISION_DISPATCHER_H
|
||||
|
||||
#include "int_types.h"
|
||||
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
/// This class is required to implement custom collision behaviour in the narrowphase
|
||||
class GodotCollisionDispatcher : public btCollisionDispatcher {
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_motion_state.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,9 +31,14 @@
|
|||
#ifndef GODOT_MOTION_STATE_H
|
||||
#define GODOT_MOTION_STATE_H
|
||||
|
||||
#include "LinearMath/btMotionState.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <LinearMath/btMotionState.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
// This clas is responsible to move kinematic actor
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_ray_world_algorithm.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,10 +29,16 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "godot_ray_world_algorithm.h"
|
||||
#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h"
|
||||
|
||||
#include "btRayShape.h"
|
||||
#include "collision_object_bullet.h"
|
||||
|
||||
#include <BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
GodotRayWorldAlgorithm::CreateFunc::CreateFunc(const btDiscreteDynamicsWorld *world) :
|
||||
m_world(world) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_ray_world_algorithm.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,9 +31,13 @@
|
|||
#ifndef GODOT_RAY_WORLD_ALGORITHM_H
|
||||
#define GODOT_RAY_WORLD_ALGORITHM_H
|
||||
|
||||
#include "BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h"
|
||||
#include "BulletCollision/CollisionDispatch/btCollisionCreateFunc.h"
|
||||
#include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"
|
||||
#include <BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h>
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionCreateFunc.h>
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionDispatcher.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class btDiscreteDynamicsWorld;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_result_callbacks.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,10 +29,15 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "godot_result_callbacks.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "collision_object_bullet.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
bool GodotFilterCallback::test_collision_filters(uint32_t body0_collision_layer, uint32_t body0_collision_mask, uint32_t body1_collision_layer, uint32_t body1_collision_mask) {
|
||||
return body0_collision_layer & body1_collision_mask || body1_collision_layer & body0_collision_mask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* godot_result_callbacks.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,10 +31,15 @@
|
|||
#ifndef GODOT_RESULT_CALLBACKS_H
|
||||
#define GODOT_RESULT_CALLBACKS_H
|
||||
|
||||
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
|
||||
#include "btBulletDynamicsCommon.h"
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
#include <BulletCollision/BroadphaseCollision/btBroadphaseProxy.h>
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
/// This class is required to implement custom collision behaviour in the broadphase
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* hinge_joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,11 +29,17 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "hinge_joint_bullet.h"
|
||||
#include "BulletDynamics/ConstraintSolver/btHingeConstraint.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btHingeConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
HingeJointBullet::HingeJointBullet(RigidBodyBullet *rbA, RigidBodyBullet *rbB, const Transform &frameA, const Transform &frameB) :
|
||||
JointBullet() {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* hinge_joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class HingeJointBullet : public JointBullet {
|
||||
class btHingeConstraint *hingeConstraint;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,8 +29,13 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
#include "space_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
JointBullet::JointBullet() :
|
||||
ConstraintBullet() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -35,6 +34,10 @@
|
|||
#include "constraint_bullet.h"
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
class btTypedConstraint;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* pin_joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,10 +29,16 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "pin_joint_bullet.h"
|
||||
#include "BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
PinJointBullet::PinJointBullet(RigidBodyBullet *p_body_a, const Vector3 &p_pos_a, RigidBodyBullet *p_body_b, const Vector3 &p_pos_b) :
|
||||
JointBullet() {
|
||||
if (p_body_b) {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* pin_joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
class PinJointBullet : public JointBullet {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* register_types.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,9 +29,14 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "bullet_physics_server.h"
|
||||
#include "class_db.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
PhysicsServer *_createBulletPhysicsCallback() {
|
||||
return memnew(BulletPhysicsServer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* register_types.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,6 +31,10 @@
|
|||
#ifndef REGISTER_BULLET_TYPES_H
|
||||
#define REGISTER_BULLET_TYPES_H
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
void register_bullet_types();
|
||||
void unregister_bullet_types();
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* rid_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "core/rid.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class BulletPhysicsServer;
|
||||
|
||||
class RIDBullet : public RID_Data {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* body_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/* rigid_body_bullet.cpp */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,18 +29,25 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "rigid_body_bullet.h"
|
||||
#include "BulletCollision/CollisionDispatch/btGhostObject.h"
|
||||
#include "BulletCollision/CollisionShapes/btConvexPointCloudShape.h"
|
||||
#include "BulletDynamics/Dynamics/btRigidBody.h"
|
||||
#include "btBulletCollisionCommon.h"
|
||||
|
||||
#include "btRayShape.h"
|
||||
#include "bullet_physics_server.h"
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "godot_motion_state.h"
|
||||
#include "joint_bullet.h"
|
||||
|
||||
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
|
||||
#include <BulletCollision/CollisionShapes/btConvexPointCloudShape.h>
|
||||
#include <BulletDynamics/Dynamics/btRigidBody.h>
|
||||
#include <btBulletCollisionCommon.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
BulletPhysicsDirectBodyState *BulletPhysicsDirectBodyState::singleton = NULL;
|
||||
|
||||
Vector3 BulletPhysicsDirectBodyState::get_total_gravity() const {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* body_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/* rigid_body_bullet.h */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,11 +31,16 @@
|
|||
#ifndef BODYBULLET_H
|
||||
#define BODYBULLET_H
|
||||
|
||||
#include "BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h"
|
||||
#include "LinearMath/btTransform.h"
|
||||
#include "collision_object_bullet.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
#include <BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h>
|
||||
#include <LinearMath/btTransform.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class AreaBullet;
|
||||
class SpaceBullet;
|
||||
class btRigidBody;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* shape_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,15 +29,21 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "shape_bullet.h"
|
||||
#include "BulletCollision/CollisionShapes/btConvexPointCloudShape.h"
|
||||
#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
|
||||
#include "btBulletCollisionCommon.h"
|
||||
|
||||
#include "btRayShape.h"
|
||||
#include "bullet_physics_server.h"
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "shape_owner_bullet.h"
|
||||
|
||||
#include <BulletCollision/CollisionShapes/btConvexPointCloudShape.h>
|
||||
#include <BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h>
|
||||
#include <btBulletCollisionCommon.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
ShapeBullet::ShapeBullet() {}
|
||||
|
||||
ShapeBullet::~ShapeBullet() {}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* shape_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,14 +31,19 @@
|
|||
#ifndef SHAPE_BULLET_H
|
||||
#define SHAPE_BULLET_H
|
||||
|
||||
#include "LinearMath/btAlignedObjectArray.h"
|
||||
#include "LinearMath/btScalar.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
#include "core/variant.h"
|
||||
#include "geometry.h"
|
||||
#include "rid_bullet.h"
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
#include <LinearMath/btAlignedObjectArray.h>
|
||||
#include <LinearMath/btScalar.h>
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class ShapeBullet;
|
||||
class btCollisionShape;
|
||||
class ShapeOwnerBullet;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* shape_owner_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,3 +29,7 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "shape_owner_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* shape_owner_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,11 +33,15 @@
|
|||
|
||||
#include "rid_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class ShapeBullet;
|
||||
class btCollisionShape;
|
||||
class CollisionObjectBullet;
|
||||
|
||||
/// Each clas that want to use Shapes must inherit this class
|
||||
/// Each class that want to use Shapes must inherit this class
|
||||
/// E.G. BodyShape is a child of this
|
||||
class ShapeOwnerBullet {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* slider_joint_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,11 +29,17 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "slider_joint_bullet.h"
|
||||
#include "BulletDynamics/ConstraintSolver/btSliderConstraint.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "rigid_body_bullet.h"
|
||||
|
||||
#include <BulletDynamics/ConstraintSolver/btSliderConstraint.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
SliderJointBullet::SliderJointBullet(RigidBodyBullet *rbA, RigidBodyBullet *rbB, const Transform &frameInA, const Transform &frameInB) :
|
||||
JointBullet() {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* slider_joint_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -34,6 +33,10 @@
|
|||
|
||||
#include "joint_bullet.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class RigidBodyBullet;
|
||||
|
||||
class SliderJointBullet : public JointBullet {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* soft_body_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,11 +29,15 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "soft_body_bullet.h"
|
||||
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
#include "scene/3d/immediate_geometry.h"
|
||||
#include "space_bullet.h"
|
||||
|
||||
#include "scene/3d/immediate_geometry.h"
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
SoftBodyBullet::SoftBodyBullet() :
|
||||
CollisionObjectBullet(CollisionObjectBullet::TYPE_SOFT_BODY),
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* soft_body_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,14 +31,16 @@
|
|||
#ifndef SOFT_BODY_BULLET_H
|
||||
#define SOFT_BODY_BULLET_H
|
||||
|
||||
#include "collision_object_bullet.h"
|
||||
#include "scene/resources/material.h" // TODO remove this please
|
||||
|
||||
#ifdef None
|
||||
/// This is required to remove the macro None defined by x11 compiler because this word "None" is used internally by Bullet
|
||||
#undef None
|
||||
#define x11_None 0L
|
||||
#endif
|
||||
|
||||
#include "BulletSoftBody/btSoftBodyHelpers.h"
|
||||
#include "collision_object_bullet.h"
|
||||
#include <BulletSoftBody/btSoftBodyHelpers.h>
|
||||
|
||||
#ifdef x11_None
|
||||
/// This is required to re add the macro None defined by x11 compiler
|
||||
|
|
@ -47,7 +48,9 @@
|
|||
#define None 0L
|
||||
#endif
|
||||
|
||||
#include "scene/resources/material.h" // TODO remove thsi please
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
struct SoftShapeData {};
|
||||
struct TrimeshSoftShapeData : public SoftShapeData {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* space_bullet.cpp */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -30,14 +29,7 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "space_bullet.h"
|
||||
#include "BulletCollision/CollisionDispatch/btCollisionObject.h"
|
||||
#include "BulletCollision/CollisionDispatch/btGhostObject.h"
|
||||
#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h"
|
||||
#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h"
|
||||
#include "BulletCollision/NarrowPhaseCollision/btPointCollector.h"
|
||||
#include "BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h"
|
||||
#include "BulletSoftBody/btSoftRigidDynamicsWorld.h"
|
||||
#include "btBulletDynamicsCommon.h"
|
||||
|
||||
#include "bullet_physics_server.h"
|
||||
#include "bullet_types_converter.h"
|
||||
#include "bullet_utilities.h"
|
||||
|
|
@ -48,8 +40,22 @@
|
|||
#include "servers/physics_server.h"
|
||||
#include "soft_body_bullet.h"
|
||||
#include "ustring.h"
|
||||
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
|
||||
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
|
||||
#include <BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h>
|
||||
#include <BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h>
|
||||
#include <BulletCollision/NarrowPhaseCollision/btPointCollector.h>
|
||||
#include <BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h>
|
||||
#include <BulletSoftBody/btSoftRigidDynamicsWorld.h>
|
||||
#include <btBulletDynamicsCommon.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
BulletPhysicsDirectSpaceState::BulletPhysicsDirectSpaceState(SpaceBullet *p_space) :
|
||||
PhysicsDirectSpaceState(),
|
||||
space(p_space) {}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* space_bullet.h */
|
||||
/* Author: AndreaCatania */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -32,17 +31,22 @@
|
|||
#ifndef SPACE_BULLET_H
|
||||
#define SPACE_BULLET_H
|
||||
|
||||
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
|
||||
#include "BulletCollision/BroadphaseCollision/btOverlappingPairCache.h"
|
||||
#include "LinearMath/btScalar.h"
|
||||
#include "LinearMath/btTransform.h"
|
||||
#include "LinearMath/btVector3.h"
|
||||
#include "core/variant.h"
|
||||
#include "core/vector.h"
|
||||
#include "godot_result_callbacks.h"
|
||||
#include "rid_bullet.h"
|
||||
#include "servers/physics_server.h"
|
||||
|
||||
#include <BulletCollision/BroadphaseCollision/btBroadphaseProxy.h>
|
||||
#include <BulletCollision/BroadphaseCollision/btOverlappingPairCache.h>
|
||||
#include <LinearMath/btScalar.h>
|
||||
#include <LinearMath/btTransform.h>
|
||||
#include <LinearMath/btVector3.h>
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
class AreaBullet;
|
||||
class btBroadphaseInterface;
|
||||
class btCollisionDispatcher;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "texture_loader_dds.h"
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
void register_dds_types();
|
||||
void unregister_dds_types();
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "texture_loader_dds.h"
|
||||
#include "os/file_access.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef TEXTURE_LOADER_DDS_H
|
||||
#define TEXTURE_LOADER_DDS_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "networked_multiplayer_enet.h"
|
||||
#include "io/marshalls.h"
|
||||
#include "os/os.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef NETWORKED_MULTIPLAYER_ENET_H
|
||||
#define NETWORKED_MULTIPLAYER_ENET_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
#include "error_macros.h"
|
||||
#include "networked_multiplayer_enet.h"
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
void register_enet_types();
|
||||
void unregister_enet_types();
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "image_etc.h"
|
||||
#include "Etc.h"
|
||||
#include "EtcFilter.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef IMAGE_ETC1_H
|
||||
#define IMAGE_ETC1_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "image_etc.h"
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
void register_etc_types();
|
||||
void unregister_etc_types();
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "texture_loader_pkm.h"
|
||||
|
||||
#include "os/file_access.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef TEXTURE_LOADER_PKM_H
|
||||
#define TEXTURE_LOADER_PKM_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
void register_freetype_types() {}
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
void register_freetype_types();
|
||||
void unregister_freetype_types();
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative.h"
|
||||
|
||||
#include "global_constants.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GDNATIVE_H
|
||||
#define GDNATIVE_H
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*************************************************************************/
|
||||
/* aabb.cpp */
|
||||
/* aabb.cpp */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/aabb.h"
|
||||
|
||||
#include "core/math/aabb.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/array.h"
|
||||
|
||||
#include "core/array.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/basis.h"
|
||||
|
||||
#include "core/math/matrix3.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/color.h"
|
||||
|
||||
#include "core/color.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/dictionary.h"
|
||||
|
||||
#include "core/variant.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/gdnative.h"
|
||||
|
||||
#include "class_db.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/node_path.h"
|
||||
|
||||
#include "core/node_path.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/plane.h"
|
||||
|
||||
#include "core/math/plane.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/pool_arrays.h"
|
||||
|
||||
#include "array.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/quat.h"
|
||||
|
||||
#include "core/math/quat.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/rect2.h"
|
||||
|
||||
#include "core/math/math_2d.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/rid.h"
|
||||
|
||||
#include "core/resource.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/string.h"
|
||||
|
||||
#include "core/string_db.h"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/*************************************************************************/
|
||||
/* string_name.cpp */
|
||||
/* string_name.cpp */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* http://www.godotengine.org */
|
||||
/* https://godotengine.org */
|
||||
/*************************************************************************/
|
||||
/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */
|
||||
/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/string_name.h"
|
||||
|
||||
#include "core/string_db.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/transform.h"
|
||||
|
||||
#include "core/math/transform.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/transform2d.h"
|
||||
|
||||
#include "core/math/math_2d.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/variant.h"
|
||||
|
||||
#include "core/reference.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/vector2.h"
|
||||
|
||||
#include "core/math/math_2d.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#include "gdnative/vector3.h"
|
||||
|
||||
#include "core/variant.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GDNATIVE_LIBRARY_EDITOR_PLUGIN_H
|
||||
#define GDNATIVE_LIBRARY_EDITOR_PLUGIN_H
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*************************************************************************/
|
||||
/* gdnative_library_singleton_editor.cpp */
|
||||
/* gdnative_library_singleton_editor.cpp */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
#include "gdnative_library_singleton_editor.h"
|
||||
#include "gdnative.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*************************************************************************/
|
||||
/* gdnative_library_singleton_editor.h */
|
||||
/* gdnative_library_singleton_editor.h */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GD_NATIVE_LIBRARY_EDITOR_H
|
||||
#define GD_NATIVE_LIBRARY_EDITOR_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_NATIVEARVR_H
|
||||
#define GODOT_NATIVEARVR_H
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*************************************************************************/
|
||||
/* aabb.h */
|
||||
/* aabb.h */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_AABB_H
|
||||
#define GODOT_AABB_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_BASIS_H
|
||||
#define GODOT_BASIS_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_COLOR_H
|
||||
#define GODOT_COLOR_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_DICTIONARY_H
|
||||
#define GODOT_DICTIONARY_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_GDNATIVE_H
|
||||
#define GODOT_GDNATIVE_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_NODE_PATH_H
|
||||
#define GODOT_NODE_PATH_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_PLANE_H
|
||||
#define GODOT_PLANE_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_POOL_ARRAYS_H
|
||||
#define GODOT_POOL_ARRAYS_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_QUAT_H
|
||||
#define GODOT_QUAT_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_RECT2_H
|
||||
#define GODOT_RECT2_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_RID_H
|
||||
#define GODOT_RID_H
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifndef GODOT_STRING_H
|
||||
#define GODOT_STRING_H
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue