Commit Graph

9836 Commits

Author SHA1 Message Date
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
Lasse Öörni
98986d77dc Fixed resource pick fileselector becoming unavailable if a resource pick was cancelled.
Remove existing bone hierarchy from AnimatedModel when it's being destroyed/detached from scene, or if a null model is assigned.
2013-05-22 15:09:42 +00:00
Wei Tjong Yao
8dd7e0a495 Modified CMakeLists.txt to include the source asm file into VS solution (just for viewing, the source is not compiled by MASM as before). 2013-05-22 11:24:54 +00:00
Wei Tjong Yao
86a04ae472 Fixed CMake Win64 build configuration problem by working around the bug temporarily. Stream lined the Windows batch files for sample applications. Enhanced cmake_vs20xx to accept optional parameter to enable 64bit build. Updated documentation. 2013-05-22 11:06:19 +00:00
Lasse Öörni
31ef2dea57 Reorganized building documentation. 2013-05-19 17:14:29 +00:00
Lasse Öörni
ad0d869c51 Cleaned up commented out code. 2013-05-18 17:21:32 +00:00
Lasse Öörni
3fe1352773 Use fixed kNet build config and simplify kNet CMakeLists.txt. 2013-05-18 12:12:18 +00:00
Wei Tjong Yao
dacd06c2d8 Removed redundant code to keep LLVM compiler happy. 2013-05-15 18:46:04 +00:00
Lasse Öörni
d01fdb3764 Fixed endless loop in non-indexed Ray::InsideGeometry(). 2013-05-12 20:45:15 +00:00
Lasse Öörni
370e3cacb6 Removed debug print. 2013-05-12 18:24:25 +00:00
Wei Tjong Yao
5f834fe1b1 Fixed GCC 64-bit compiler warning. 2013-05-12 16:57:17 +00:00
Lasse Öörni
483e07c2e8 Print warning if node is not found for node animation.
Update documentation on playing back node animations.
2013-05-12 16:34:42 +00:00
Lasse Öörni
a0a3428de5 Allow using AnimationController also for node animations. 2013-05-12 15:47:00 +00:00
Lasse Öörni
8eb5ebe73c Fixed AnimationState code in node animation mode. 2013-05-12 13:15:07 +00:00
Lasse Öörni
4c2842967e Allow configuring the minimum instances per batch group to actually render as instanced. 2013-05-12 12:18:52 +00:00
Lasse Öörni
2e1982ee03 Store the changed geometry type to the batch in case instancing is rejected. 2013-05-11 23:43:54 +00:00
Lasse Öörni
185f7833dd Convert a batch group to instancing only when the second batch is added. 2013-05-11 23:05:14 +00:00
Lasse Öörni
ace84bc7ca Fixed UI debug draw. 2013-05-11 17:08:21 +00:00
Lasse Öörni
5550246c09 Export node animations from scene.
Preparation for running an AnimationState in node hierarchy mode in addition to AnimatedModel mode.
2013-05-11 17:03:44 +00:00
Lasse Öörni
cd88d22e36 Renamed BillboardSet::Updated() to Commit() to match CustomGeometry API. 2013-05-11 09:30:29 +00:00
Wei Tjong Yao
1f54977f7e Completed renaming of Scene and Node windows to Hierarchy and Attribute-inspector windows, respectively. 2013-05-11 05:26:52 +00:00
Lasse Öörni
5d07d7aa23 Do not concatenate worldscale separately.
Use matrix math to calculate new transform when node is reparented, instead of setting T/R/S separately. This allows better match of effective scale even when parent node has nonuniform scale.
2013-05-10 22:10:17 +00:00
Wei Tjong Yao
9f7862e9da Script cleaned up. 2013-05-10 15:54:44 +00:00
Wei Tjong Yao
5dcdbe453b Fixed cmake_eclipse.sh to remove CMakeCache.txt. Fixed 64-bit compilation issue against newer X11 development library. 2013-05-10 15:35:42 +00:00
Lasse Öörni
c6a38db74f Do not show the internal TerrainPatch & SmoothedTransform components in editor creation menu.
Fixed reconstruction of the TerrainPatch's occlusion transform.
2013-05-10 13:52:46 +00:00
Lasse Öörni
21715547bc Applied InsideGeometry() fix from Firegorilla. 2013-05-09 21:59:36 +00:00
Lasse Öörni
5e5d98581c Concatenate world rotation separately to fix GetWorldRotation() returning erroneous values when parent node has nonuniform scale.
Reorganized component categories.
2013-05-09 20:34:29 +00:00