Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
588c6373ea Applied Piotr's SDL patch. 2012-05-14 16:30:23 +00:00
Lasse Öörni
627d2c94d7 Switched from GLFW & PortAudio back to (modified) SDL 2.0.
Do not draw debug geometry for bones that do not contribute to skinning.
Activate input immediately after title bar drag (Windows) or when the cursor is moved into the client area after title bar drag (Mac & Linux).
2012-05-13 22:28:06 +00:00
Lasse Öörni
5001c19663 Documentation fixes & additions. 2012-05-09 22:29:25 +00:00
Lasse Öörni
d05a89c0a4 Cleanup comments. 2012-05-09 07:22:29 +00:00
Lasse Öörni
d9f9505ae4 Fixed possibility of mistaken procedural event handling if attempted from a script object that does not belong to a ScriptInstance. 2012-05-09 07:21:04 +00:00
Lasse Öörni
8a5d1b5322 Removed the object & module maps from the Script subsystem. Use instead AngelScript userdata to map from script constructs to C++ objects.
Customized asCScriptObject to contain userdata.
2012-05-08 22:40:10 +00:00
Lasse Öörni
e92e3fd138 Tidied up the example scripts to use the KeyDown event instead of polling keypresses. 2012-05-08 20:23:09 +00:00
Lasse Öörni
88b91e129a Do not return negative refcount from an expired weak pointer, but clamp to 0. 2012-05-08 07:17:59 +00:00
Lasse Öörni
6ad8b7dd7e Comments formatting. 2012-05-07 22:34:52 +00:00
Lasse Öörni
f6ca98e0c9 Update rigid body's inertia tensor whenever its transform is forcibly changed, or when it is re-added to the world. 2012-05-07 22:16:25 +00:00
Lasse Öörni
63054db172 Fixed undefined behavior if rigid body was removed as response to the collision event. 2012-05-07 20:38:31 +00:00
Lasse Öörni
958c489be7 Fixed GCC build. 2012-05-07 19:55:48 +00:00
Lasse Öörni
1bfcc7e65c Use const references in value parameters. 2012-05-07 19:50:12 +00:00
Lasse Öörni
0ca75a4d2d Updated documentation. 2012-05-07 19:46:00 +00:00
Lasse Öörni
4666520d0b Improved ragdoll stability in TestScene.
Create ragdolls when hit by the boxes (both TestScene & TestSceneOld.)
Fixed component ID clash when creating ragdolls in networked TestScene.
Constraints can specify rotation frame directly. Specifying the axis is still provided for convenience, but does not give exact control over the orientation.
Constraint adjusts static world position automatically when the own body position is edited.
Optimized away redundant Constraint recreation when deserializing attributes.
Added RemoveComponent by component type to Node.
Show also write-only properties in the generated scripting API documentation.
2012-05-07 19:44:43 +00:00
Lasse Öörni
ceb111c609 Ragdoll tweaks. 2012-05-07 16:05:57 +00:00
Lasse Öörni
2488c6772a Improved ragdoll creation. 2012-05-07 12:38:31 +00:00
Lasse Öörni
70c58f43d9 Added SetWorldPosition() to Constraint.
Initial ragdoll test in TestScene.
2012-05-07 07:30:40 +00:00
Lasse Öörni
9f331e56db Changed Constraint API to specify the other body position / axis explicitly, and to specify limits as Vector2.
Fixed bugs in assigning parented RigidBody transforms after simulation step.
Optimized Constraint SetPosition() / SetAxis() to not recreate the constraint.
2012-05-07 00:15:20 +00:00
Lasse Öörni
b01fc7b60b Added rigid body queries to PhysicsWorld. 2012-05-06 20:29:03 +00:00
Lasse Öörni
c554abccb8 Fixed crash related to incorrect constraint reference tracking. 2012-05-06 17:50:26 +00:00
Lasse Öörni
b636b3a211 Keep track of constraints to release them properly before deleting the rigid body. 2012-05-06 16:20:59 +00:00
Lasse Öörni
5f66411903 Fixed missing calls to MarkNetworkUpdate() in Constraint.
Cleaned up applying constraint limits.
2012-05-06 13:12:27 +00:00
Lasse Öörni
011c8e8e8f Updated version history for impending new release. 2012-05-06 12:38:07 +00:00
Lasse Öörni
0c98c92182 Do not create a new directional light when drawing a fullscreen quad. 2012-05-06 12:33:29 +00:00
Lasse Öörni
8cdc6f69d2 Properly clean up event handlers referring to a deleted object.
Added cone twist constraint.
Added angular motion limits to the slider constraint.
Improved batch group hashing.
2012-05-06 11:59:47 +00:00
Lasse Öörni
4335295b87 Added slider constraint. 2012-05-05 23:10:45 +00:00
Lasse Öörni
8b366d2db8 Set up hinge constraint frames manually. 2012-05-05 21:16:08 +00:00
Lasse Öörni
5570d120a1 Added DebugNew.h include to Scene. 2012-05-05 18:36:15 +00:00
Lasse Öörni
3ad1136dcb Added missing include. 2012-05-05 18:21:46 +00:00
Lasse Öörni
54c7de95d8 Tidied up Container code.
Added more asserts to shared/weak pointers.
Store per-object event handlers into a linked list instead of a map.
2012-05-05 17:35:39 +00:00
Lasse Öörni
e5d42e36c8 Generalized the constraint code to save the other body relative position/axis, instead of world relative position/axis.
Constraint code cleanup.
2012-05-03 21:51:54 +00:00
Lasse Öörni
3203ee410f Take node scale into account when offsetting the constraint.
Use the constraint's local position for editing, but save a hidden world position attribute for static constraints to potentially combat limit violation error in repeated scene save/load.
2012-05-03 20:17:23 +00:00
Lasse Öörni
5c4904288a Fixed hinge constraint breaking.
Fixed constraint not being created if rigid body did not initially exist.
Changed constraint position & axis to be serialized in world space for reliability.
2012-05-02 22:13:09 +00:00
Lasse Öörni
9123d1c3d3 Eliminated unnecessary recreation/readdition of physics components when attributes change.
Increased the default smoothing snap threshold.
2012-05-01 22:09:33 +00:00
Lasse Öörni
ef421ef32d Initial Bullet constraint implementation.
Changed DrawDebugGeometry() to be a virtual function in Component.
2012-05-01 19:26:29 +00:00
Lasse Öörni
2c5a034bf5 Fixed includes. 2012-04-30 17:45:10 +00:00
Lasse Öörni
a556679a42 Fixed crash caused by assigning Geometry shared ptr's in multiple threads. 2012-04-30 16:29:23 +00:00
Lasse Öörni
d62812df86 Comments cleanup and Batch refactoring. 2012-04-30 15:21:22 +00:00
Lasse Öörni
4548687d1b Set Skybox distance to a fixed 0.
Store StaticModel per-geometry extra data to a structure instead of separate arrays.
2012-04-29 21:22:25 +00:00
Lasse Öörni
48190acfca Eliminated most virtual function calls from getting Drawable batches. 2012-04-29 18:20:44 +00:00
Lasse Öörni
31e027b354 Maximum amount of sorted instances can be configured in Renderer. By default 1000.
Moved the NetworkState pointer back to Serializable, as there was not much practical benefit.
2012-04-29 16:20:23 +00:00
Lasse Öörni
a7494cedc4 Removed NetworkState pointer from Serializable for better class memory layout control. 2012-04-29 13:36:46 +00:00
Lasse Öörni
a84ed27df9 Updated to AngelScript 2.23.1.
Removed link time code generation from the release build as it greatly increases compile time, but does not seem to provide observable performance benefit.
2012-04-29 13:10:22 +00:00
Lasse Öörni
e6fe0d6cf0 Removed convenience GetWorldTransform() from Component to make it explicit that an indirection to the parent node is being made.
Added inverse transform caching to Zone.
Added light nullcheck to Batch.
2012-04-29 12:01:37 +00:00
Lasse Öörni
132847926d Do not unnecessarily calculate batch sort key or choose shaders for instanced batches. 2012-04-29 10:43:45 +00:00
Lasse Öörni
ecdfec3e80 Small optimization to drawable collecting. 2012-04-28 17:50:30 +00:00
Lasse Öörni
e1bd04e5dd Store batch groups into a HashMap for slightly better performance. 2012-04-28 17:37:01 +00:00
Lasse Öörni
25fa4a2926 Optimized drawables' view space Z range calculation. 2012-04-28 15:30:08 +00:00
Lasse Öörni
b4330ccc46 Optimized CheckVisibilityWork. 2012-04-28 13:24:52 +00:00