Commit Graph

9612 Commits

Author SHA1 Message Date
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
Lasse Öörni
5feb2f9527 Calculate proper center of mass shift for rigid body. This makes eg. ragdolls work better.
Fixed CollisionShape & Constraint constantly triggering scale update on parented rigid bodies due to minor inaccuracy in world scale.
Tweaked ragdolls.
2013-06-10 19:52:50 +00:00
Lasse Öörni
d6fab14e32 Align downforce to vehicle hull orientation. 2013-06-10 13:28:44 +00:00
Lasse Öörni
4e4e363606 Tweaked Vehicle example: more engine power, added downforce. 2013-06-10 05:38:34 +00:00
Lasse Öörni
3989849c55 Tweaked ragdoll parameters in TestScene & TestSceneOld.
Expose constraint's ERP & CFM parameters directly, instead of trying to derive them from a "softness" value.
2013-06-09 19:06:03 +00:00
Lasse Öörni
1c83fc8cd4 Wake up the wheel rigidbodies when steering. 2013-06-08 12:54:15 +00:00
Lasse Öörni
bd3a4c30f4 Added vehicle physics example.
Added softness parameter to Constraint.
Fixed exposing Quaternion::Slerp() to script.
Removed package download code also from Physics & Terrain examples.
2013-06-08 12:40:29 +00:00
Lasse Öörni
782c5971ee Use unique name for RESOURCE_CHECK target. 2013-06-05 20:03:00 +00:00
Lasse Öörni
648564c8fb Added setup_main_executable() CMake macro which sets up resource copying for an executable. 2013-06-05 18:31:17 +00:00
Lasse Öörni
5afa139af0 Fixed Terrain::SetOccludee() working incorrectly. 2013-06-04 23:04:48 +00:00
Lasse Öörni
7402da1ebd Fixed menu item staying pressed and performing its action later if cursor was moved away from it with left button pressed. 2013-06-04 20:22:52 +00:00
Lasse Öörni
6899609644 Applied consistency edits to the ParticleEmitter API. Added missing UpdateInvisible attribute & functions.
Demonstrate use of viewmasks in TestSceneOld to exclude the billboards from raycasting.
2013-06-03 18:00:15 +00:00
Lasse Öörni
43af394ac7 Make sure kNet's buildconfig is included for the Clock & Thread classes. 2013-06-02 09:37:04 +00:00
Lasse Öörni
49a628a5c8 Use remote events for spawning particle effects in networked NinjaSnowWar to avoid sending all ParticleEmitter attributes. 2013-06-01 22:14:28 +00:00
Lasse Öörni
3e07e77b4c Make the ParticleEmitter's period & emission timers editable to be able to reset them before saving an object prefab. 2013-06-01 14:36:00 +00:00
Lasse Öörni
dd956fb560 Documentation update. 2013-06-01 14:32:45 +00:00
Lasse Öörni
5be5222cb8 Added ParticleEmitter attributes.
Added public API to ParticleEmitter.
Fixed crashes from setting negative element count in editor (number of animation states, billboards etc.)
Limit maximum billboard count due to index data being 16 bit.
2013-06-01 14:26:03 +00:00
Lasse Öörni
3c244f9755 Allow live-reload of particle emitter parameters file.
Allow also specifying emission rate instead of emission interval.
Allow emitting multiple particles per frame if necessary.
Restored the "effect" component category in the editor. ParticleEmitter & DecalSet belong to it now.
2013-05-30 23:20:40 +00:00
Lasse Öörni
7397399c7c Allow defining draw range without an index buffer if raw index data has been defined. Note: the validity of the draw range cannot be checked in that case. 2013-05-25 23:27:43 +00:00
Lasse Öörni
4e618bb80e Subclass SDLActivity so that the package name in SDL JNI code does not need to be changed.
Do not check for duplicate vertices when building triangle collision meshes to avoid a O(n^2) algorithm.
2013-05-25 23:14:14 +00:00
Lasse Öörni
730c6eda2f Updated to AngelScript 2.27.0 WIP. 2013-05-25 22:11:21 +00:00
Lasse Öörni
b8270df90b Added error logging for cases of components in detached nodes trying to find Octree or PhysicsWorld, or subscribing to update events.
Added error logging if a node is moved from one scene to another (unsupported.)
2013-05-24 10:19:46 +00:00
Lasse Öörni
ff35d0fff2 Fixed missing semicolon in Sprite.h
Clear the arch environment variable in Visual Studio CMake bat files, so that it is possible to reconfigure the build as 32bit in the same command prompt session by rerunning CMake bat without the "Win64" flag.
2013-05-23 09:00:18 +00:00
Lasse Öörni
cb5961c04d Use a reference to UpdateAttributes() fullupdate flag, so that if a non-fullupdate turns into a fullupdate due to changed number of attribute editors, the iconpanel is resized properly. 2013-05-22 20:28:23 +00:00
Lasse Öörni
d215b745d4 Return light's shape texture ResourceRef as TextureCube type if it's a point light.
Remove TextureCube hack from editor's resource picking code.
2013-05-22 19:56:23 +00:00