godot/modules/bullet
Hein-Pieter van Braam 0e29f7974b Reduce unnecessary COW on Vector by make writing explicit
This commit makes operator[] on Vector const and adds a write proxy to it.  From
now on writes to Vectors need to happen through the .write proxy. So for
instance:

Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;

Failing to use the .write proxy will cause a compilation error.

In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.

_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
..
doc_classes doc: Remove status from hardcoded version string 2018-02-27 13:40:49 +01:00
area_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
area_bullet.h Fixed area overlap cleaning 2018-04-09 09:33:29 +02:00
btRayShape.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
btRayShape.h Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
bullet_physics_server.cpp Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their respective 2D counterparts to be more consistent and to include more useful methods. 2018-07-24 05:00:56 -04:00
bullet_physics_server.h Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their respective 2D counterparts to be more consistent and to include more useful methods. 2018-07-24 05:00:56 -04:00
bullet_types_converter.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
bullet_types_converter.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
bullet_utilities.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_object_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
collision_object_bullet.h Fixed Bullet collision shapes scale 2018-01-08 16:44:33 +01:00
cone_twist_joint_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
cone_twist_joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
config.py SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
constraint_bullet.cpp Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet 2018-02-05 18:54:07 +01:00
constraint_bullet.h Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet 2018-02-05 18:54:07 +01:00
generic_6dof_joint_bullet.cpp Implemented interface for bullet joint motors 2018-03-16 13:37:15 +01:00
generic_6dof_joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot_collision_configuration.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot_collision_configuration.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot_collision_dispatcher.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot_collision_dispatcher.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
godot_motion_state.h Fix typos with codespell 2018-02-21 19:46:06 +01:00
godot_ray_world_algorithm.cpp Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape 2018-02-19 20:59:57 +01:00
godot_ray_world_algorithm.h Fix inconsistencies and typos in argument names 2018-02-01 16:47:20 +01:00
godot_result_callbacks.cpp Implemented ragdoll 2018-05-07 21:03:16 +02:00
godot_result_callbacks.h Fixed kinematic sliding on trimesh 2018-04-04 10:49:10 +02:00
hinge_joint_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
hinge_joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joint_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pin_joint_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pin_joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
register_types.cpp Implemented Soft body 2018-07-23 20:50:23 +02:00
register_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rid_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rigid_body_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
rigid_body_bullet.h Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their respective 2D counterparts to be more consistent and to include more useful methods. 2018-07-24 05:00:56 -04:00
SCsub SCons: Allow unbundling bullet on Linux (only 2.87+) 2018-01-13 15:16:22 +01:00
shape_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
shape_bullet.h added cylinder shape support 2018-07-01 11:16:54 +02:00
shape_owner_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shape_owner_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
slider_joint_bullet.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
slider_joint_bullet.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
soft_body_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
soft_body_bullet.h Implemented Soft body 2018-07-23 20:50:23 +02:00
space_bullet.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
space_bullet.h Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00