Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
a4a0458981 Removed Connection's own framenumber as redundant.
Removed unnecessary double Find() for a node's replication state.
2012-04-17 21:14:21 +00:00
Lasse Öörni
1cf5d99d44 Optimized network server operation by using HashMap instead of Map where applicable and by querying Serializable attributes once per network frame, instead of per user. 2012-04-17 20:32:45 +00:00
Lasse Öörni
08ac95dbf7 Fixed continuous collision detection to work with the compound shape.
Added CCD radius & motion threshold attributes to RigidBody. 
Use CCD for NinjaSnowWar snowballs to prevent their tunneling through the ground.
2012-04-16 21:45:40 +00:00
Lasse Öörni
9baf3bad64 Fixed crash in FileWatcher on exit when FileSystem had already been destroyed.
Added start/end caching to Map & Set.
Container code cleanup.
2012-04-16 19:58:11 +00:00
Lasse Öörni
7ea084bc4b Added missing DebugNew.h includes. 2012-04-16 07:35:46 +00:00
Lasse Öörni
c48f640a18 Changed several structures to HashMap / HashSet for better performance. 2012-04-16 07:15:33 +00:00
Lasse Öörni
58d7858839 Optimized storage of specific event senders.
Fixed Color::ToUInt().
Added missing profile block for physics debug draw.
2012-04-15 23:07:41 +00:00
Lasse Öörni
c25d16b14e Optimized Color::ToUInt(). 2012-04-15 20:37:01 +00:00
Lasse Öörni
8455ba5ce0 Adjusted attribute order in editor. 2012-04-15 19:27:51 +00:00
Lasse Öörni
dcb2b5146a Removed volatile keyword from as_callfunc_x86.cpp when compiling for Linux. 2012-04-15 18:21:41 +00:00
Lasse Öörni
51c9160eae Removed CCD Radius parameter for now as continuous collision detection is not supported for all collision shapes.
Changed the way RigidBody attributes are applied to reduce unnecessary re-adding of the body to the simulation world during deserialization.
2012-04-15 16:47:33 +00:00
Lasse Öörni
9ead094d5a Removed the physics world maximum timestep, as it is already governed by the Engine's minimum FPS. 2012-04-15 13:19:42 +00:00
Lasse Öörni
32fa940130 Handle world transform update of parented RigidBodies correctly.
Updated physics documentation.
2012-04-15 11:42:02 +00:00
Lasse Öörni
2a6e4cf21b Fixed network replication of RigidBody linear & angular factor. 2012-04-15 00:10:06 +00:00
Lasse Öörni
1e493ba802 Networked rigidbodies should work now. 2012-04-14 23:50:18 +00:00
Lasse Öörni
e8974fae47 NinjaSnowWar single player mode fixed to work with Bullet physics.
Physics bugfixes.
Heightfield shape removed for now due to buggy collision.
2012-04-14 19:27:26 +00:00
Lasse Öörni
7524eb27a9 Clear inbuilt script object type search cache when compiling script code to prevent crash if a failed script module compile is attempted several times. 2012-04-14 10:24:15 +00:00
Lasse Öörni
3bb70d065e Draw debug geometry for individual RigidBodies or CollisionShapes.
Fixed CollisionShape shapetype being uninitialized.
2012-04-13 21:21:31 +00:00
Lasse Öörni
187f179af6 Exposed missing physics enums to script.
Added collision event mode to RigidBody, which allows to filter out unneeded collision events.
2012-04-13 11:37:02 +00:00
Lasse Öörni
69a8f4f6e0 Added back collision events and physics raycasting. 2012-04-12 23:08:44 +00:00
Lasse Öörni
402bf1f59e Fixed possible incorrect cylinder shape size assignment. 2012-04-12 20:14:12 +00:00
Lasse Öörni
2c535ab11a Refactored back to using only CollisionShape component, which has an enum for the shape type. Restored the SetBox(), SetSphere() etc. API for CollisionShape. 2012-04-12 20:00:19 +00:00
Lasse Öörni
f612c26287 Renamed Heightfield dimensions -> numPoints to be more descriptive. 2012-04-12 07:05:15 +00:00
Lasse Öörni
90f2a80612 Added heightfield & convex hull shapes.
Adapted TestSceneOld to the new physics components.
Do not create scaled copies of triangle mesh collision vertex data, instead scale the collision shape.
2012-04-11 22:22:10 +00:00
Lasse Öörni
731dc2d6ca Optimized collision shape update to not recreate the whole compound shape every time something changes.
Remove a sub-shape from the compound shape first before deleting it.
2012-04-11 18:01:44 +00:00
Lasse Öörni
3e812ec1e0 Fixed physics update bug that caused physics framerate dependency and instability. 2012-04-11 15:42:58 +00:00
Lasse Öörni
3ce34fe7e4 Fixed missing registration of SmoothedTransform. 2012-04-11 07:19:19 +00:00
Lasse Öörni
70d95e7ae6 Added ConeShape & TriangleMeshShape. 2012-04-10 22:01:20 +00:00
Lasse Öörni
3d273cc15e Added more basic collision shapes. 2012-04-10 19:11:10 +00:00
Lasse Öörni
4af35bfe49 Added damping & more friction to TestScene. 2012-04-10 07:40:38 +00:00
Lasse Öörni
567375b7a0 Use Bullet local scaling instead of recreating the collision shape when node scale changes. 2012-04-10 06:46:58 +00:00
Lasse Öörni
ee3095e603 Added box collision shape. 2012-04-09 23:45:51 +00:00
Lasse Öörni
1841169cb2 Fixed missing CollisionGeometryData code.
Refactored node transform smoothing into a separate component. Not yet used.
2012-04-09 21:44:46 +00:00
Lasse Öörni
8edf0240a1 Migration to Bullet physics underway. Most of physics functionality & examples broken for now. 2012-04-09 18:10:17 +00:00
Lasse Öörni
88e8f37fb4 More general resolving of full asset names. 2012-04-08 09:36:37 +00:00
Lasse Öörni
3fd5129304 Do not split submeshes into own vertex buffers (if more than 65535 vertices) when original mesh uses shared geometry. 2012-04-07 23:43:51 +00:00
Lasse Öörni
b5f95985f7 When processing materials in Tundra scene import mode, resolve texture refs to full paths as necessary. 2012-04-07 22:59:18 +00:00
Lasse Öörni
fbd019cff4 Updated to AngelScript 2.23.0. 2012-04-07 20:26:01 +00:00
Lasse Öörni
a85817a355 Reverted to joint world space positioning for reliability.
Added debug geometry visualization for joints.
Added nullchecks to prevent crash by calling DrawDebugGeometry() from script with a null debug renderer pointer.
2012-04-06 17:23:45 +00:00
Lasse Öörni
2412b4b910 Flatten model & material names correctly when importing a Tundra scene. 2012-04-03 22:47:31 +00:00
Lasse Öörni
2972b668c8 Removed the CheckInLight() optimization from TestScene as it was making the scene not fully dynamic.
Code cleanup.
2012-04-01 19:42:23 +00:00
Lasse Öörni
566489e1fa Updated the script API documentation. 2012-04-01 18:09:52 +00:00
Lasse Öörni
8a5274b596 Further refactoring of the Joint API. Now position & axis are specified in the local space of the own rigid body. 2012-04-01 18:07:58 +00:00
Lasse Öörni
9d864d3f89 Fixed return type of Texture2D::SetSize() & TextureCube::SetSize() when exposed to script. 2012-03-30 23:45:44 +00:00
Lasse Öörni
ff950d7dca Refactored joint attributes. Now the joint should be created into a node with a rigidbody, and only the connected body needs to be specified. 2012-03-30 23:02:33 +00:00
Lasse Öörni
7eaa728f84 Restored accurate frame limiting. May need more testing on different systems. 2012-03-28 18:40:15 +00:00
Lasse Öörni
bea4b8d60b Allow per-rigidbody disabling of gravity. 2012-03-25 12:57:45 +00:00
Lasse Öörni
a972435910 Reverted previous change for increased readability as no performance difference was observed. 2012-03-23 16:24:43 +00:00
Lasse Öörni
c0273f35ca Removed deprecated SuppressNextChar() function. 2012-03-23 11:45:46 +00:00
Lasse Öörni
6a99c8ad0d Added ifdefs to disable inclusion of unneeded uniforms, samplers and attributes.
Removed deprecated LightVolume shader.
2012-03-23 11:40:25 +00:00