Commit Graph

102 Commits

Author SHA1 Message Date
Jérôme Leclercq
f327932738 Commit current work
Reworked conditions, added uber-shaders, comparison nodes, fixed Discard
2021-01-02 21:15:59 +01:00
Jérôme Leclercq
65337c6a38 Fix a lot of warnings and some errors 2020-09-26 11:44:09 +02:00
Jérôme Leclercq
790815e9ee Merge branch 'master' into nazara-next 2020-09-17 20:28:11 +02:00
Jérôme Leclercq
36d3c51eeb Add module configurations 2020-09-17 20:10:39 +02:00
Jérôme Leclercq
fd1d416510 Rename Module to ModuleBase 2020-09-11 13:39:18 +02:00
Jérôme Leclercq
a7fac3beb8 Rework modules 2020-09-10 20:12:09 +02:00
Jérôme Leclercq
1e29790831 Physics2D/RigidBody2D: Fix velocity func not being copied 2020-09-05 12:56:35 +02:00
Jérôme Leclercq
b2a7e620e0 Merge branch 'master' into nazara-next 2020-08-27 20:12:36 +02:00
Jérôme Leclercq
83cf358d02 Physics2D/RigidBody2D: Fix EnableSimulation 2020-07-03 16:27:14 +02:00
Lynix
c23b6dfa01 Copyright year update
I can't wait to see the conflicts this will cause
2020-03-05 17:27:26 +01:00
Lynix
df2a029f30 Physics2D/Collider2D: Add support for neighbors vertices 2020-01-01 17:25:22 +01:00
Lynix
3b43f57192 Added physics function to control sleeping behavior 2019-12-19 21:33:56 +01:00
Lynix
62023c6af7 Physics2D/RigidBody2D: Fix body type not being copied 2019-10-15 09:34:55 +02:00
Lynix
c23248c564 PhysWorld2D: Fix possible stack overflow when using wildcard collision handler 2019-06-16 15:40:24 +02:00
Lynix
dcfd2ad8f9 Physics2D/PhysWorld2D: Add RaycastQuery and RegionQuery overloads taking a callback 2019-05-27 22:42:37 +02:00
Lynix
8a8c233840 Oops 2019-04-15 16:26:30 +02:00
Lynix
e61faae089 Physics2D/PhysWorld2D: Fix multiple calls to RegisterCallbacks with the same collision id 2019-04-15 16:25:40 +02:00
Lynix
3efb54ea3c Physics2D/RigidBody2D: Fix SetPosition 2019-04-03 21:14:17 +02:00
Lynix
23887cc519 Merge branch 'master' into physics2d-position-offset 2019-03-26 20:33:40 +01:00
Lynix
1f5a82d178 Physics2D/Collider2D: Fix CircleCollider2D center of mass 2019-03-26 19:04:13 +01:00
Lynix
11e98918ab Physics2D/Collider2D: Add ForEachPolygon method 2019-03-26 19:03:56 +01:00
Lynix
3beeeebc1d Physics2D/RigidBody: Add position offset 2019-03-26 18:59:18 +01:00
Lynix
439a62a7f8 Physics2D: Automatically compute center of mass 2019-03-17 15:56:38 +01:00
Lynix
662ccbd5d0 Physics2D/RigidBody2D: Add possibility to setup a custom velocity function 2019-01-19 02:31:29 +01:00
Lynix
40cd8a7987 Physics2D/RigidBody2D: Add ForEachArbiter method 2019-01-19 02:29:27 +01:00
Lynix
9be8d0eae4 Add RigidBody2D::GetBodies 2019-01-19 02:25:45 +01:00
Lynix
cd54cf641b Alignment fix 2018-12-19 22:22:30 +01:00
Jérôme Leclercq
beed59b94c Physics2D/RigidBody2D: Fix potential crash if closestDistance is passed as nullptr 2018-11-16 17:42:59 +01:00
Lynix
3933d5007d Physics2D/RigidBody2D: AddTorque now takes a RadianAnglesf instead of a float 2018-10-11 00:08:26 +02:00
Lynix
fb11fe1ecf Math/Angle: Rename angle field to value 2018-10-10 23:12:27 +02:00
Lynix
30348525d7 Physics2D: Expose elasticity/friction/surface velocity 2018-10-09 23:22:28 +02:00
Lynix
dc6fbfc90f Replace floating point angle by Angle class instance 2018-10-09 23:20:53 +02:00
Lynix
b8e25502f5 Physics2D/RigidBody2D: Fix useless copy 2018-08-29 20:55:19 +02:00
Lynix
e62afabd71 Physics2D/Collider2D: Fix CompoundCollider2D filters 2018-08-29 20:54:57 +02:00
Lynix
933cb64488 Physics2D/Collider2D: Allow to prevent individual colliders properties override 2018-08-24 16:30:03 +02:00
Jérôme Leclercq
b92e23fcd6 Physics2D: Add Arbiter2D 2018-08-02 15:42:14 +02:00
Faymoon
2f3f02b2fc Update Physics2D Component and Body (#178)
* Update

* Add: [Get/Set]AngularDaming for standardization

* Fix: Name error

* Add: [Get/Set][AngularDamping/MomentOfInertia] in PhysicsComponent2D

* Forgot in last commit

* Add: param coordSys in [PhysicsComponent2D/RigidBody2D]::SetMassCenter

* Add: Some forgotten inline

* Fix little error

* Fix: Indentation before case

* Move and Change GetCenterOfGravity
2018-08-02 11:25:57 +02:00
Jérôme Leclercq
2fcea6b79f Core/StackArray: Moved StackArray class to its own header 2018-07-02 17:53:49 +02:00
Jérôme Leclercq
b2185f2138 Physics2D/RigidBody2D: Add ClosestPointQuery method 2018-06-12 15:11:16 +02:00
Jérôme Leclercq
95f137816a Physics2D/PhysWorld2D: Add invStepCount argument to pre/post steps callbacks 2018-04-30 14:55:28 +02:00
Jérôme Leclercq
45af15d802 Physics[2|3]D/PhysWorld[2|3]D: Add max step count 2018-02-09 17:29:20 +01:00
Jérôme Leclercq
bb7c97ed9a Add PhysWorld2D::UseSpatialHash 2018-02-09 17:25:11 +01:00
Jérôme Leclercq
17849226e4 Physics2D/PhysWorld2D: Add iteration count control 2018-02-09 17:24:00 +01:00
Jérôme Leclercq
58e6c8e36c Physics2D/RigidBody2D: Fix movement not moving registered and simulation enabled states 2018-01-18 10:32:48 +01:00
Jérôme Leclercq
7a04c6f83b Physics2D/RigidBody2D: Add EnableSimulation/IsSimulationEnabled 2018-01-17 17:13:50 +01:00
Faymoon
4f6bf30f24 Constraint 2D (#147)
* Rename all Constraint by [name]Constraint3D

* Create Refs and Libraries for Constraint2D

* Remove ref to PhysWorld in Constraints ctors

* Update Constraint2d ctor to have RigiBodies first

* Add New static function for all constraints and fix an oopsie

* Add Contraint Library and remove all library useless aliases

* Add ConstraintComponent2D

* remove useless definition of Constraint2D library

* Fix : getting the world of the constraint before having created it

* Make the GetStaticBody function return a ref

* Remove : Useless AddJoint Fonction and Update CreateJoint function

* Update PhysicsSystem3D because GetStaticBody return now a ref

* Oops

* Having done something with the 3D and i was needing 2D

* Add ConstraintComponent as friend of Collision and PhysicsComponent

* Update all the Get[Static/Rigid]Body function so they return a pointer

* fix the bugs caused by the commit before

* update : CreateConstraint lambda for the nullptr case

* remove the useless  use of const pointer

* Update : CreateConstraint function

* Update ChangeLog.md
2018-01-13 11:03:03 +01:00
Lynix
72bcb1fda7 Physics2D/RigidBody2D: Fix SetGeom attribute copy 2017-11-28 23:20:45 +01:00
Gawaboumga
f991a9529e General bug fixes (#142)
* Core/Bitset: Fix TestAll method

* Fix documentation

* Fix color and their conversions

* Core/ByteStream: Fix return of Write

* Fix compiler warnings

* Math/Algorithm: Fix angle normalization

* Math/BoundingVolume: Fix lerp

* Math: Fix relation between Matrix4 and Quaternion

* More tests

* X11/Window: Fix mouse moved event generated when doing Mouse::SetPosition

* Update ChangeLog

* Should fix compilation on Windows

* Should fix compilation on Windows

Forgot to include array for Windows
2017-11-21 12:16:46 +01:00
Jérôme Leclercq
b3f3d16f13 Physics2D: Fix DebugDraw of polygons 2017-10-16 11:57:23 +02:00
Jérôme Leclercq
6e7b78611d Physics2D/RigidBody2D: Add SetStatic method 2017-10-16 11:56:41 +02:00