Commit Graph

10202 Commits

Author SHA1 Message Date
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
Lasse Öörni
1ab5dd3e8d Fixed crash if OpenGL version or extensions are not satisfied. 2012-03-23 00:00:24 +00:00
Lasse Öörni
139ef6d6e2 Removed the light to light queue map. Instead store the light queue pointer directly to the light. 2012-03-21 08:13:57 +00:00
Lasse Öörni
1f89e97116 Insert drawable into the proper octant (instead of root) immediately when OnNodeSet() is called. 2012-03-21 00:13:34 +00:00
Lasse Öörni
b7f5a6c997 Reverted use of HashSet in Octree for updates & reinsertions. Instead use vectors of weak pointers to Drawables to require no explicit cleanup when removed. 2012-03-20 18:39:57 +00:00
Lasse Öörni
97142c1db1 Eliminated n^2 algorithms from event subscribing and octree updates. 2012-03-20 16:33:46 +00:00
Lasse Öörni
66f3fd4097 Added function to get API-independent projection matrix.
Preallocate light queues once per frame instead of resizing the light queue container multiple times.
2012-03-19 20:13:53 +00:00
Lasse Öörni
265d59dfb0 Use occlusion for coarse culling of octants before testing drawable occlusion in worker threads.
More specialized octree queries moved to View.
2012-03-19 08:08:57 +00:00
Lasse Öörni
6c1536627e Refactor of the OctreeQuery class. Use a separate subclass for shadowcaster-only queries. 2012-03-18 23:06:54 +00:00
Lasse Öörni
612a0c2dee Fixed erroneous occlusion culling in orthographic mode.
Use two smaller Z-biases (before and after viewport transform) for occlusion instead of one large.
2012-03-18 22:19:55 +00:00
Lasse Öörni
6fbf8d0404 Increased occlusion buffer Z-accuracy.
Use similar calculations for occluders and occludees to minimize errors.
Decreased default minimum occluder screen size to allow better occluder fusion of small occluders.
2012-03-18 19:33:23 +00:00