Commit Graph

9886 Commits

Author SHA1 Message Date
Aster Jian
e91dcff71b Fixed missing header file. 2013-07-07 05:24:19 +00:00
Aster Jian
52516fbfa2 Force lua GC. 2013-07-07 05:23:43 +00:00
Aster Jian
1cdb324a6e Update tolua++ pkg files. 2013-07-07 05:15:03 +00:00
Lasse Öörni
82201f831c Detect missing include file and build SDL without Windows joystick support if necessary. 2013-07-06 20:21:03 +00:00
Lasse Öörni
ad7b7451b4 As latest SDL was found to be non-threadsafe in practice, removed the StaticMutex and the OBJECTTYPESTATIC constructs which were added to support multi-context use within a single process.
Fixed single SDL memory leak on exit.
2013-07-06 12:30:40 +00:00
Wei Tjong Yao
e1a05e621c Simplified app exit code path. 2013-07-06 04:20:16 +00:00
Lasse Öörni
a18ad2b45d Do not allow Input to directly close the rendering window and cause engine main loop termination. Instead send an event. Engine::SetAutoExit() controls whether to exit automatically as a response.
Do not pump OS events inside static mutex, as SDL's own event queue is already thread-safe.
2013-07-05 21:08:23 +00:00
Lasse Öörni
14fc3cbe5c Fixed multiple instance SDL event handling. 2013-07-05 16:08:05 +00:00
Wei Tjong Yao
d0bbb1b1d4 Fixed cmake_ios.sh to accept command line arguments, such as '-DENABLE_LUA=1' to turn on Lua support. 2013-07-05 11:37:12 +00:00
Lasse Öörni
0687f75fdb Added comment on threaded Octree update. 2013-07-05 07:04:07 +00:00
Lasse Öörni
e5d4a3939b Emit public drag start/move/end events. Adapted from patch contributed by Chris Friesen. 2013-07-04 21:34:58 +00:00
Lasse Öörni
ad84d373b9 Removed X11 const defines from SDL Linux config. 2013-07-04 19:38:47 +00:00
Lasse Öörni
b1ce162af1 React to window closed by setting Engine to exiting state.
Eliminated circular dependency between Engine & Input.
2013-07-04 13:57:32 +00:00
Wei Tjong Yao
29c4f5cc62 Reverted back to UNIX eol and a minor cleaned up. 2013-07-04 12:09:44 +00:00
Lasse Öörni
17d990098c Updated to new SDL 2.0. 2013-07-04 11:04:02 +00:00
Wei Tjong Yao
487981c76f Fixed MSVC/Win. 2013-07-04 05:50:57 +00:00
Wei Tjong Yao
2946fb3198 Removed generated artifacts from SVN. Automated the generation of *LuaAPI.cpp as part of the build process. 2013-07-04 04:29:22 +00:00
Lasse Öörni
20c63654e3 Fixed gravity being incorrectly applied if framerate is low. 2013-07-02 22:35:24 +00:00
Aster Jian
008480cb27 Update Lua API. 2013-07-02 12:36:57 +00:00
Aster Jian
7f15f788e6 Add Vector type support. 2013-07-02 12:18:58 +00:00
Aster Jian
4f15793699 Add missing header file. 2013-07-02 12:18:07 +00:00
Wei Tjong Yao
aee4fa62dd Corrected the lettercase to fix GCC compile. 2013-07-02 11:16:27 +00:00
Wei Tjong Yao
96fd774edc Changed SystemRun() to return the actual exit code returned by subprocess. Added error log when failed to open file externally. 2013-06-30 08:32:14 +00:00
Wei Tjong Yao
5d0641bdf5 Implemented SystemOpen() method for Linux platform. The implementation relies on xdg-open from xdg-utils package which should be pre-installed by default in mainstream Linux distros like Fedora, Ubuntu, Mint. 2013-06-30 07:22:16 +00:00
Aster Jian
1a32c4a55e Replace tab with spaces. 2013-06-30 03:32:23 +00:00
Aster Jian
0e62845dab Replace tab with space. 2013-06-30 03:31:37 +00:00
Wei Tjong Yao
f69e7579d7 Cleaned up cmake_vs20xx.bat. 2013-06-30 01:55:26 +00:00
Lasse Öörni
4aaec71d20 If node animation has only 1 track, play it in the given root node regardless of whether the track & node name match. 2013-06-29 21:25:07 +00:00
Lasse Öörni
ea67568632 Added Lua bindings contributed by Aster Jian.
Fixed missing includes in some header files.
2013-06-29 16:42:38 +00:00
Wei Tjong Yao
75aa36c327 Clarified the purpose of the HAVE_XCONST_* tests in CMakeLists.txt. 2013-06-27 13:47:27 +00:00
Wei Tjong Yao
8843775dca Minor refactoring to detect parentage directly. 2013-06-27 05:55:51 +00:00
Wei Tjong Yao
f4076560d1 Send E_MODALCHANGED event only when the modal flag changes successfully. 2013-06-27 04:31:04 +00:00
Lasse Öörni
1114a3fc28 Option to disable the InternalEdgeUtility.
Mention indent spacing in coding conventions.
2013-06-26 08:54:56 +00:00
Wei Tjong Yao
2f88f7fc81 Fixed UI subsystem to dismiss the FileSelector correctly when its modal window is being closed via ESC key. 2013-06-26 07:49:38 +00:00
Lasse Öörni
1fdf228359 Move the AngelScript API registration to the Script library and inverted the Script <-> Engine library dependency.
Move object factory registration into the subsystems where possible.
2013-06-26 00:09:02 +00:00
Lasse Öörni
ee668a791f Clear forces after each physics substep so that rendering framerate doesn't affect code which calls ApplyForce() / ApplyTorque(). 2013-06-24 12:54:03 +00:00
Lasse Öörni
79628ef505 Fixed Constraint.cpp compile error in debug mode.
Code formatting.
2013-06-24 12:44:28 +00:00
Lasse Öörni
855fefe74c Applied Bullet internal edge patch from amadeus_osa. 2013-06-24 08:55:19 +00:00
Lasse Öörni
65a4a3b51f Applied Bullet 2.81 update patch from amadeus_osa.
Added split impulse & number of constraint solver iteration attributes to PhysicsWorld. Split impulse gives more accurate collision detection but is disabled by default for better performance.
2013-06-23 12:38:11 +00:00
Lasse Öörni
e05283e0e6 When center of mass changes, reapply all constraints referring to this rigidbody, instead of just the constraint in the same scene node. This fixes erroneous constraint offsets at scene load. 2013-06-23 10:27:15 +00:00
Lasse Öörni
0cb0dc4c4a To be consistent, subtract rigid body center of mass offset when applying forces and querying local velocity. This way the center of mass offset should not "leak" to the user. 2013-06-17 21:11:00 +00:00
Lasse Öörni
da953b8aa7 Write morph tangents as Vector3's in OgreImporter.
Fixed example particle system description files using wrong attribute name for sorting.
Clarified vertex weight threshold for bone hitbox calculation.
2013-06-16 18:24:31 +00:00
Lasse Öörni
090eb3aafa Find DirectX SDK to avoid needing it as a global Visual Studio directory. 2013-06-13 15:35:49 +00:00
Lasse Öörni
28d9b7abe4 If rigid body has only one collision shape with no offset/rotation, do not use the compound shape to improve performance. 2013-06-13 09:09:51 +00:00
Lasse Öörni
8bfd4f64c8 Less aggressive terrain heightmap smoothing. 2013-06-12 22:06:47 +00:00
Lasse Öörni
27b31af0cf Added RigidBody::ReAddBodyToWorld().
Added heightfield smoothing attribute.
Allow CollisionShape::SetTriangleMesh() & SetConvexHull() without specifying LOD level (0 is default)
Refactored Vehicle example and increased vehicle speed.
2013-06-12 21:09:36 +00:00
Lasse Öörni
633378312b Added missing CollisionShape::SetStaticPlane() function. 2013-06-12 07:19:41 +00:00
Lasse Öörni
84dde8917b Added GetVelocityAtPoint() to RigidBody. 2013-06-11 22:47:52 +00:00
Lasse Öörni
a968757745 In case there is center of mass offset, change also rigid body position when setting rotation. 2013-06-11 10:07:29 +00:00
Lasse Öörni
63e4ff5b4b Allow to query rigid body's center of mass.
When setting constraint positions, take center of mass offset into account.
Reapply constraint frames when the center of mass offset changes.
2013-06-10 23:38:59 +00:00