bjorn
9bf2def86d
Rename box shape dimensions to be more clear;
2023-07-10 23:11:14 -07:00
bjorn
be795c0ebd
Change vec3 back to 3 floats; Clean up maf/vectors;
...
The "vec3 is 4 floats" thing was consistently confusing to people. It's
reverted everywhere except for Curve.
maf now has full sets of methods for vec2/vec3/vec4, for consistency.
Vector bindings now use luax_readvec* helper functions for the
number/vector variants, and use maf for most functionality, which cleans
things up a lot.
2023-07-10 17:51:24 -07:00
bjorn
e9776f98c6
Fix compatibility with Lua 5.2, 5.3, 5.4;
...
Part of this involved putting the Lua header back in api.h, since we
need to know the Lua version to define some macros properly.
2022-11-24 14:33:55 -08:00
bjorn
f8f748320e
Minor Shape improvements;
...
- Add helper functions for creating shapes to avoid duplication between
newShape and newShapeCollider.
- Add lovr.physics.newMeshShape and lovr.physics.newTerrainShape
- Register TerrainShape so it has all the base Shape methods
- Smooth out a few TerrainShape warnings
2022-11-09 20:53:42 -08:00
Josip Miskovic
34611f2069
Add physics heightfield shape
2022-11-08 18:46:49 -08:00
bjorn
65b0f95ca9
Add lovrUnreachable macro;
2022-04-27 00:05:14 -07:00
bjorn
8fcdfd2bb4
Minor physics cleanup;
2022-03-30 22:05:10 -07:00
bjorn
6c9531564e
Make physics structs private;
2022-03-25 12:40:29 -07:00
bjorn
b7527c3584
More people use COUNTOF;
2022-03-22 17:56:26 -07:00
bjorn
2da18d419b
mv util src;
2022-03-22 00:13:38 -07:00
bjorn
e63099ba6a
Flatten api.h;
2021-03-15 18:54:27 -06:00
bjorn
3bc2c00b79
api doesn't include util;
2020-12-25 12:50:26 -07:00
bjornbytes
eb319fdade
Fix trailing whitespace;
2020-11-21 14:37:47 -07:00
Josip Miskovic
b735015f6e
Check if shape can be positioned and oriented
...
Shape without attached collider cannot be positioned or oriented. Trying
to do so results in ODE crash. Better to throw a more descriptive error.
2020-11-12 17:18:40 +01:00
bjorn
51f470cf85
Easier enums;
2020-09-27 17:13:00 -07:00
Josip Miskovic
75591fde42
Support for trimesh shape colliders
2020-09-24 20:58:28 +02:00
bjorn
ec257b179f
Support Lua 5.2, 5.3, 5.4;
2020-08-19 13:12:57 -06:00
bjorn
6539bc1bd2
Make physics orientation getters more consistent;
2020-05-10 02:08:36 -06:00
Josip Miskovic
e2d1b33eed
Shapes API accepts both vec3 and number coords
2020-05-10 01:12:45 +03:00
bjorn
18dcb07b98
Convert stuff over to use new enum system;
2020-02-16 18:31:02 -08:00
bjorn
c9b1f257bf
api: try new file naming convention; Tupfile: cleanup;
...
I assume full responsibility for any catastrophes this causes.
2019-12-31 19:31:44 -08:00