top of page
COZY COZY WORLD
I am an ordinary Japanese salaryman in his 50's.
The posts are mostly about my attempts at programming which I have taken up recently to maintain logical thinking.
And a bit about my travels around the country.
Home: ようこそ!
Search

Center of Mass of Lamina: Arbitrary Triangle
In the previous post we worked through the calculation of the centroid of an isosceles triangle. In this post we delve into the...
cedarcantab
Jun 1, 20223 min read
5 views
0 comments

Center of Mass of Lamina: Isosceles triangle
We will put the learnings of the previous post into practice by applying the principles to a triangle. Center of Mass of a Triangle We...
cedarcantab
May 31, 20221 min read
5 views
0 comments

Sloped Tile Collision Detection in Phaser 3
Making Characters Climb Sloped Tiles After a long and tortuous journey I finally managed to get CozyPhysics engine to work with partial...
cedarcantab
May 28, 20228 min read
97 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 14: SAT - Capsule vs Capsule
We saw in the previous post that we can use the separating axis theorem to detect collisions between a polygon and circle, the point...
cedarcantab
May 8, 20223 min read
15 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 13: SAT - Circle Collision Detection
Circle collision detection using Separating Axis Theorem Where is the projection axis for a circle? As we saw in the previous post, the...
cedarcantab
Apr 30, 20224 min read
18 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 12: SAT - Polygon vs Line Collision Detection
This post will be short. It is about using the separating axis theorem (SAT) to detect collision between polygon and line segments. Just...
cedarcantab
Mar 26, 20221 min read
14 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 11.3: SAT - Containment
In the prior post I talked about how to generate a minimum translation vector, which allowed us to push objects around by forcing...
cedarcantab
Mar 25, 20222 min read
6 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 11.1: SAT - Convex Polygon Collision Detection
Collision Detection between Polygons with Separating Axis Theorem Phaser provides methods to detect overlap / collision between triangles...
cedarcantab
Mar 23, 20226 min read
23 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 9: Capsule to Capsule Collision and Resolution
Capsules Phaser 3's default arcade physics engine handles physics bodies as either rectangles (AABB only) or circles. It appears that in...
cedarcantab
Mar 21, 20225 min read
17 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 8: Triangle Collisions
Triangle vs Triangle Collision Detection with Rotation In a prior post I took a quick look at GetRectagleToRectangle method of Phaser's...
cedarcantab
Mar 14, 20223 min read
21 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 7: Rotation
Rotation in a plane So far we have dealt with circles and axis-aligned boxes. Collision detection, resolution and response becomes...
cedarcantab
Mar 10, 20224 min read
8 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 6: Rectangle Collision Detection & Resolution
Axis Aligned Rectangle Collision Detection and Resolution Having worked through the logic of collision detection between circles and...
cedarcantab
Mar 7, 20229 min read
21 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 5: Circle vs Line Collisions
Handling collisions between Circle and Line We covered the topic of colliding circles against axis aligned lines. In this post we cover...
cedarcantab
Feb 28, 20226 min read
39 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 4: Circle Collision Response with Mass
Collision Response in Circle2Circle with mass In the previous post I developed the crudest form of collision response; that of two...
cedarcantab
Feb 22, 20225 min read
6 views
0 comments

Physics Simulation in Javascript: Circle2Circle Collision Response (Bounce)
Circle vs Circle Collision Response In the previous post I covered: detecting collisions (strictly speaking, overlap) between two...
cedarcantab
Feb 15, 20225 min read
30 views
0 comments

Physics Simulation in Javascript: Circle to Circle Collision Resolution
Resolution of collisions between two circles In the previous post we discussed how to assess whether two circles are colliding, or...
cedarcantab
Feb 9, 20224 min read
16 views
0 comments

Physics Simulation in Javascript: Circle to Circle Collision Detection
Collision Detection and Collision Resolution between 2 Circles One of the core functions of a physics engine is of course to detect when...
cedarcantab
Feb 7, 20223 min read
29 views
0 comments

Understanding 2D Physics Engines with Phaser 3, Part 1.5: Rotation Matrix
There is one special type of matrix that will come up time and time again, particularly we start to deal with rotating bodies; that is...
cedarcantab
Jan 31, 20224 min read
4 views
0 comments

Understanding 2D Physics Engine with Phaser 3, Part 1.3: The Cross Product
The Cross Product Some mathematicians will tell you that the vector cross product does not exist in 2D. If you search for a wiki page on...
cedarcantab
Jan 29, 20223 min read
12 views
0 comments
Home: Blog2
Home: 配信登録
bottom of page