bjorn
9803e9916f
Use naming convention for destructor;
2018-12-19 01:04:42 -08:00
bjorn
155a0c1449
lovr*Create -> lovr*Init; lovr*Create macro;
2018-12-19 01:04:42 -08:00
bjorn
0e99d47394
Fix module destruction;
...
There is a problem when a Thread stops: it destroys all of the modules
that it required. This is because we unconditionally call luax_atexit
when modules are required, and when the thread lua_State dies it takes
all of the modules with it. To fix this, lovr<Module>Init will return
whether or not initialization successfully happened, which provides us
with enough info to know if we should place the luax_atexit destructor
2018-11-19 09:24:28 -08:00
bjorn
1f00948da0
Fix world/collider memory leaks;
2018-08-18 21:16:19 -07:00
bjorn
4df836727c
Simplify refcounting;
2018-02-26 00:59:03 -08:00
bjorn
ecde864ec4
Use spooky BOOleans everywhere;
2017-10-31 01:14:09 -07:00
bjorn
1cc62a9b6d
DistanceJoint;
2017-06-10 15:13:19 -07:00
bjorn
827c92cc38
Collider constructor accepts position;
2017-06-10 14:17:59 -07:00
bjorn
b305b3b109
Put World headers back;
2017-06-10 14:05:02 -07:00
bjorn
b0c86c1903
Reorder collider functions;
2017-06-10 04:51:09 -07:00
bjorn
c198369c95
Joint limits;
2017-05-25 15:20:55 -07:00
bjorn
39400776dc
Semantic tags;
2017-05-25 15:01:40 -07:00
bjorn
00142b7a74
rm mask and category declarations;
2017-05-25 13:41:00 -07:00
bjorn
3b4996b7d0
Collider:setFriction; Collider:setRestitution;
2017-05-25 00:56:56 -07:00
bjorn
a32eb38026
SliderJoint;
2017-05-25 00:48:02 -07:00
bjorn
c828eaa338
HingeJoint;
2017-05-24 23:51:27 -07:00
bjorn
507ab7f4bb
BallJoint:getAnchors; BallJoint:setAnchor;
2017-05-24 23:47:16 -07:00
bjorn
6bfea99be6
Collider:getAABB;
2017-05-24 18:10:39 -07:00
bjorn
876a8406b1
Shape:getAABB;
2017-05-24 17:47:59 -07:00
bjorn
f3df7aa114
World:raycast;
2017-05-24 17:40:32 -07:00
bjorn
07ede6b2dc
Custom friction and resitution;
2017-05-24 17:40:32 -07:00
bjorn
f1a74c34c3
Joints;
...
Also no expressions in luax_pushtype;
2017-05-24 17:40:32 -07:00
bjorn
f3a4ce3931
Collider:getShapeList;
2017-05-19 22:51:16 -06:00
bjorn
0fb1bd77d8
Shape:destroy;
2017-05-19 22:24:23 -06:00
bjorn
6ef9c6e475
Collider:destroy;
2017-05-19 22:14:20 -06:00
bjorn
5640b1d048
Organization; World:destroy;
2017-05-19 22:11:49 -06:00
bjorn
1a404c087f
Collider:getLocalCenter;
2017-05-19 21:51:43 -06:00
bjorn
1829a65898
Organization; Collider:isGravityIgnored; Collider:setGravityIgnored;
2017-05-19 21:48:59 -06:00
bjorn
2c89aa4663
s/Body/Collider;
2017-05-19 20:11:58 -06:00
bjorn
661e9188c7
Custom collision handling;
2017-05-19 15:04:34 -06:00
bjorn
7c170d9bf2
Collision WIP;
2017-05-16 23:12:10 -06:00
bjorn
29f4878dbc
Body:getMassData; Body:setMassData;
2017-05-16 19:13:38 -06:00
bjorn
e8686ffaea
Body:getMass; Body:setMass;
2017-05-16 18:41:47 -06:00
bjorn
e18f3e3f9d
Shape:computeMass;
...
I think
2017-05-16 18:25:08 -06:00
bjorn
bcbe6c47d4
CylinderShape;
2017-05-16 15:56:20 -06:00
bjorn
6a166f7102
CapsuleShape;
2017-05-16 15:52:41 -06:00
bjorn
e79c45ffdf
BoxShape;
2017-05-16 15:52:09 -06:00
bjorn
995e8a2ea8
SphereShape;
2017-05-16 15:21:10 -06:00
bjorn
09db32f6b4
Shape:getMask; Shape:setMask;
2017-05-16 14:26:38 -06:00
bjorn
81dfba071c
Shape:getCategory; Shape:setCategory;
2017-05-16 14:26:09 -06:00
bjorn
73ec387545
Shape:getOrientation; Shape:setOrientation;
2017-05-16 12:48:01 -06:00
bjorn
327022461e
Shape:getPosition; Shape:setPosition;
2017-05-16 12:46:15 -06:00
bjorn
a70edfe2a5
Shape:getUserData; Shape:setUserData;
2017-05-16 12:33:55 -06:00
bjorn
e93bfb30ad
Shape:isEnabled; Shape:setEnabled;
2017-05-16 12:29:18 -06:00
bjorn
bca3335da8
Cleanup;
2017-05-16 12:24:49 -06:00
bjorn
c7515a1f7e
Shape:getBody; Shape:setBody;
2017-05-16 12:23:13 -06:00
bjorn
43ac25a61d
Shape;
2017-05-16 12:17:01 -06:00
bjorn
1115929583
Body:getWorld;
2017-05-16 00:37:14 -06:00
bjorn
835f0da058
Body:getUserData; Body:setUserData;
2017-05-16 00:09:44 -06:00
bjorn
048b62324f
Body:isAwake; Body:setAwake;
2017-05-15 23:42:09 -06:00