Commit Graph

16 Commits

Author SHA1 Message Date
Léo Lam 2dc8daf02f
ksys/phys: Implement ListShapeRigidBody 2022-02-12 17:04:00 +01:00
Léo Lam 4a1bb88bd5
ksys/phys: Declare factory functions for SphereShape/SphereRigidBody 2022-02-12 10:51:02 +01:00
Léo Lam 9c1f080884
ksys/phys: Add most of PolytopeShape 2022-02-10 19:32:52 +01:00
Léo Lam ced69f3e7d
ksys/phys: Implement CylinderWaterShape 2022-02-03 18:33:22 +01:00
Léo Lam 7875b0ad55
ksys/phys: Group shapes into folders to declutter RigidBody/Shape 2022-02-03 13:02:43 +01:00
Léo Lam 7c25fd08eb
ksys/phys: Implement CylinderShape 2022-02-03 12:44:04 +01:00
Léo Lam 52efb18af7
ksys/phys: Finish CapsuleShape and add CapsuleRigidBody 2022-02-02 23:20:47 +01:00
Léo Lam 5d3fd32988
ksys/phys: Add BoxWaterRigidBody::make 2022-02-02 16:18:04 +01:00
Léo Lam d277eac80e
ksys/phys: Move BoxShapeParam::createShape to BoxShape::make
The same BoxShapeParam class is used for two different shape classes
(BoxShape and BoxWaterShape) so it's more natural to move the factory
function to the shape class itself
2022-02-01 17:08:03 +01:00
Léo Lam ff2e2f9ff7
ksys/phys: Start adding BoxRigidBody 2022-01-30 19:28:36 +01:00
Léo Lam 716916d863
ksys/phys: Rename WaterCylinder to CylinderWater for consistency
"Water" is used as a suffix (e.g. a box of water is called "BoxWater",
not "WaterBox").

This naming convention has the benefit of keeping related shape types
next to each other in the source file list.
2022-01-30 18:24:10 +01:00
Léo Lam 891b95efff
ksys/phys: Fix a bool flag being defined as u32 in RigidBodyFactory 2022-01-30 11:40:11 +01:00
Léo Lam 682897091a
ksys/phys: Rename some variables that were missed in 60e2b166 2022-01-30 02:21:42 +01:00
Léo Lam 60e2b1664f
ksys/phys: Rename Shape/Body classes to avoid confusion
What we currently call BoxBody, CapsuleBody, etc. is actually
BoxShape, CapsuleShape, etc. (those classes encapsulate Havok shapes)

So this commit renames Body -> Shape and Shape -> ShapeParam.
2022-01-30 02:20:12 +01:00
Léo Lam 278b088bd1
ksys/phys: Rename RigidBodyParamView to RigidBodyInstanceParam for clarity 2022-01-13 12:14:05 +01:00
theo3 87e8bafae2 havok stubs and ksys::phys work 2021-12-14 00:08:16 -08:00