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
cedarcantab
Jun 12, 20226 min read
2D Raycasting using Phaser 3, Part 4
Exploring the Geom.Intersects.GetLineToPolygon method In my exploration of 2D raycasting using Phaser 3, I created simple 2D raycasters...
104 views0 comments
cedarcantab
Jun 10, 20221 min read
Angular Momentum and Impulse
Momentum and Impulse Linear Momentum and Linear Impulse Linear momentum, typically represented by letter p - is proportional to mass m...
5 views0 comments
cedarcantab
Jun 9, 20222 min read
Mass Moment of Inertia: Arbitrary Triangle
Momentum and Impulse In this post I try to explain how the moment of inertia of an arbitrary triangle may be derived (full disclosure:...
4 views0 comments
cedarcantab
Jun 7, 20222 min read
Mass Moment of Inertia: Capsule
MMOI of a Capsule In this post we calculate the mmoi of a capsule. To calculate the mmoi of a capsule, we consider it as the sum of a...
1 view0 comments
cedarcantab
Jun 6, 20222 min read
Mass Moment of Inertia: Rectangle
Before continuing our challenge to derive the mmoi for other shapes, I will introduce two important theorems that will help us as we deal...
10 views0 comments
cedarcantab
Jun 5, 20224 min read
Mass Moment of Inertia (MMOI): Introduction
Angular Momentum, Moment of Inertia In prior posts we have discussed momentum, which we have assumed to be mass x velocity. In a world...
18 views0 comments
cedarcantab
Jun 1, 20223 min read
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...
5 views0 comments
cedarcantab
May 31, 20221 min read
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...
5 views0 comments
cedarcantab
May 30, 20225 min read
Center of Mass and Centroid
In this first post (of what is likely to be a long series) I will delve into center of mass. Center of Mass Wikipedia defines center of...
8 views0 comments
cedarcantab
May 28, 20228 min read
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...
91 views0 comments
cedarcantab
May 26, 202213 min read
GJK in Javascript, Part 1: Detect Overlap Between Polygons
Collision Detection using Gilbert-Johnson-Keerthi (GJK) algorithm Having looked at the Separating Axis Theorem (SAT), I look at another...
31 views0 comments
cedarcantab
May 15, 20222 min read
Understanding 2D Physics Engines with Phaser 3, Part 15: SAT - Line vs Circle vs Polygon vs Capsule
In previous posts I have dealt with checking for collisions of the following combinations: polygon vs polygon polygon vs line segment...
15 views0 comments
cedarcantab
May 14, 20225 min read
Partial Tile Collision in Phaser 3: Climbing "Slopes"
Having worked out the basic logic for detecting collisions with partial tiles, there is light at the end of the tunnel to making Mario...
42 views0 comments
cedarcantab
May 14, 20224 min read
Partial Tile Collision in Phaser 3: The Basics
Finally, we go beyond recreating (cut-down version of) Phaser's arcade physics engine, and tackle the problem of partial tiles. The...
48 views0 comments
cedarcantab
May 13, 20224 min read
Pixel Perfect Tile Collision in Phaser 3, Part 2
Introducing gravity and bounce In the previous post I got as far as recreating basic tile collisions for my CozyPhysics engine. The...
24 views0 comments
cedarcantab
May 12, 20229 min read
Pixel Perfect Tile Collision in Phaser 3, Part 1
Cozy Physics Engine: Starting from the beginning Now that I have gained some understanding of how Phaser's arcade physics engine deals...
38 views0 comments
cedarcantab
May 10, 20227 min read
Pixel Perfect Tile Collision in Phaser 3, Part 0B
In this post, I continue to explore the insides of the Phaser arcade physics engine relating to sprite vs tile collisions. Detecting...
20 views0 comments
cedarcantab
May 9, 202210 min read
Pixel Perfect Tile Collision in Phaser 3, Part 0A
In my exploration of the various mechanics involved tile map based games, I have, among others, used the original Donkey Kong game (which...
61 views0 comments
cedarcantab
May 8, 20223 min read
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...
9 views0 comments
cedarcantab
May 5, 20224 min read
"One-way" / "Pass-through" Platforms in Phaser 3: Tile Maps
As we saw in the previous post, it is remarkably easy to create "one-way" platforms using sprites. However, what about using tilemaps?...
130 views0 comments
Home: Blog2
Home: 配信登録
bottom of page