Commit graph

19 commits

Author SHA1 Message Date
Erik Ogenvik
664988645e Make all properties define type and optional name. 2018-04-27 23:12:15 +02:00
Erik Ogenvik
6114bad0df Update geometry when mesh files change. 2018-04-27 23:12:15 +02:00
Erik Ogenvik
f582e0613b Allow scaling axis to be set using "scaler" attr. 2018-04-18 20:19:31 +02:00
Erik Ogenvik
a8e21ddfc5 Added more sphere options.
Where radius is determined by selected axis.
2018-04-15 13:29:49 +02:00
Erik Ogenvik
f09675cec6 Use "planted" for floating entities.
Entities that are "planted" on bodies of water are floating.
This does away with the "floating" mode.

To mark that entities should by default be floating when placed in
water the boolean property "floats" has been added.
2018-03-24 17:06:02 +01:00
Erik Ogenvik
070b0a6c85 Check for where to plant entities.
If an entity is in mode "planted" we should check for any existing
planted entities below it, to see if we should add it on top of them, or
on top of the terrain.
2018-03-23 23:07:09 +01:00
Erik Ogenvik
065505b07e Added compound shapes.
These are useful when you want to represent concave shapes with more
fidelity (since they otherwise would be represented by a convex hull
when on "free" mode).
2018-03-07 15:22:13 +01:00
Erik Ogenvik
98166a57e0 Added support for free mesh geometry.
We do this by using the GImpact shapes. These work, but are resource
intensive. So make sure you don't use too many of these in free mode.
This isn't thouroughly researched though. It might be worth looking into
btCollisionHull, or to alter some of the parameters to fine tune the
simulation.
2018-03-05 12:42:10 +01:00
Erik Ogenvik
2590f4ded9 Fixed issue with invalid inertia for meshes. 2018-02-20 22:26:27 +01:00
Erik Ogenvik
9bc54bca52 Reorganize and add "present-" properties.
The ambition is to have "present-" properties for all types.
2018-02-15 12:39:34 +01:00
Erik Ogenvik
3f8d39047e Update bbox from the mesh.
When a mesh is used for geometry, a bbox should not be specified as
that's inferred from the mesh.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
67b907bee3 Declare asset geometry on the "geometry" property.
I.e. don't use the GeometryFile property.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
7127d39f13 More work on moving to left hand coord system. 2018-02-06 13:45:10 +01:00
Erik Ogenvik
df77523d16 Properly handle mesh geometry. 2017-03-19 14:36:35 +01:00
Erik Ogenvik
8fc041aadb Added tests for geometry property. 2017-02-12 21:41:11 +01:00
Erik Ogenvik
21f62ea137 Moved shape creation to geometry property.
This optimizes mesh handling, since only one btBvhTriangleMeshShape
instance will be created per type.
2017-01-02 23:52:49 +01:00
Erik Ogenvik
fd5e3d79e1 Add support for mesh geometry.
For now we only allow this for static geometry.
All code is provisional; we should move parsing to the Geometry
property and make it reuse scaled meshes.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
e7c3892d57 Added support for cylinders as geometry. 2016-12-15 18:27:42 +01:00
Erik Ogenvik
596ffad815 Added properties for geometry and angular factor.
For now we'll only support a limited set of geometry shapes.
2016-12-15 18:27:42 +01:00