Sam Hocevar
38733fade7
math: move the matrix-to-quaternion code to a global header.
This lets us use the code for non-float variable types. I also got
rid of the mat4-to-quat code so that users are forced to use the
mat3-to-quat code and possibly discover places where their code is
suboptimal.
pirms 9 gadiem
Benjamin ‘Touky’ Huet
6ab67e8f86
btPhysTest is working again, but it still has 7 Ticker::Unref(Shader) that should be there ......
pirms 9 gadiem
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
pirms 9 gadiem
Benjamin ‘Touky’ Huet
22322d50fd
Scene::AddPrimitive now only supports Primitive because why not
pirms 9 gadiem
Benjamin ‘Touky’ Huet
f67da65818
First pass of EasyMesh split & refactor
Big FAT pass on windows-warning. It is better now.
pirms 9 gadiem
Sam Hocevar
d72cb24bc0
build: move sample and tutorial files around.
pirms 10 gadiem
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
pirms 10 gadiem
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
pirms 10 gadiem
Sam Hocevar
cadc4d18b0
test: move the unit tests to the engine, and lolunit out of the engine.
pirms 10 gadiem
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
pirms 10 gadiem
Sam Hocevar
398ee1b4d5
base: use lol::array in most places.
pirms 10 gadiem
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
pirms 10 gadiem
Sam Hocevar
79ed58f1f0
Merge branch 'master' into scenegraph
pirms 10 gadiem
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
72366b856a
btPhystest fixup
pirms 11 gadiem
Benjamin ‘Touky’ Huet
40a1a18758
btphystest : cat movement update
pirms 11 gadiem
Benjamin ‘Touky’ Huet
f259e85316
btPhysTest : Tweaked the cat sheet.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
a03c38872d
btPhysTest : Added a new test mode called "CAT_MODE". Try it out at your own risks.
pirms 11 gadiem
Sam Hocevar
9cfe1bffd6
easymesh: print full mesh source when compilation fails.
pirms 11 gadiem
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
pirms 11 gadiem
Sam Hocevar
8b7482ae09
build: bad lolbot! fix the mess caused by its file renames.
pirms 11 gadiem
Lolbot
ad2ddbb715
build: convert source files to lowercase.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
96972cdc4d
easymesh : Bitfield big Fuckup. Never code drunk.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
96f3044ef0
BtPhysTest : added lights
pirms 11 gadiem
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
ea517c2926
Added tsw (ToggleScaleWinding) command in EasyMesh Parser to make old-school celShading contour.
pirms 12 gadiem
Sam Hocevar
7ebb577fe8
test: fix mesh settings in the physics demo.
pirms 12 gadiem
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
pirms 12 gadiem
Benjamin ‘Touky’ Huet
7e4252a38f
CIS:CSI
pirms 12 gadiem
Benjamin ‘Touky’ Huet
c0d15f170a
pirms 12 gadiem
Benjamin ‘Touky’ Huet
a11c50b3e7
small tweak on BtPhysTest. does not work better.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
8838ef06b6
Added InputTracker test initPhysTest
pirms 12 gadiem
Benjamin ‘Touky’ Huet
11ddba1864
Added Attachment/base logic with working attachment with EasyCharacterController.
Added RayCastResult & a naïve integration for EasyCharacterController.
Enjoy !
pirms 12 gadiem
Benjamin ‘Touky’ Huet
7334bb2ec1
Added Base/Attachment Logic, works with Kinematic & Ghost.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
ca94a77974
BtPhysTest : Splitted Physics files
pirms 12 gadiem
Benjamin ‘Touky’ Huet
e8d2d8c202
So Character Controller works with a lazy camera logic.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
1ca08dd0d7
LocalInertia error FIX.
Character integration better but still not working.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
f514756a2d
Lazy WE :
Small tweaks in the BtPhysTest demo.
Added Ghost Object skeleton (not tested)
pirms 12 gadiem
Sam Hocevar
441b90bdfa
test: smooth physics objects, for fun.
pirms 12 gadiem
Sam Hocevar
48b0f20f00
test: fix compilation warnings caused by constant strings being cast
to char *.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
4a31a63b77
Correct integration of EasyConstraint + TestDemo.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
38f0fd5fc3
Small name refactor & correct Kinematic integration.
+ Constraint hollow class.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
d642c90e6f
Added Collision group & mask support.
+ weird racist test : the primitives only collide with their same type.
pirms 12 gadiem
Sam Hocevar
aa6ce4c34d
easymesh: set the capsule's main axis to Y, not Z.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
ebbed2988a
BtPhysTest : Container box now moves.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
e82c65aa18
Added walls and better context to the physics.
pirms 12 gadiem
Sam Hocevar
b5f1b679b7
test: minor tweaks to the physics demo.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
444ed1df81
EasyPhysics : Added Capsules.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
cd46cef099
Added Cylinder primitives.
Added several delete/destructor, speeds up exit & saves memory.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
0ea021a40a
EasyMesh : Fixed normals on disc when one of the radius == 0
EasyPhysics : Added Cone primitive.
pirms 12 gadiem