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
Feb 6, 20246 min read
QuadTree [WIP]
/** * @author Timo Hausmann * @author Richard Davey <rich@photonstorm.com> * @copyright 2015 Photon Storm Ltd. * @license ...
2 views0 comments
cedarcantab
Feb 6, 20244 min read
Uniform Grid
/* ____ _ / ___|| | _____ | | | | _ | __ | | _____ _ \___ \| |/ \ \ /\ / / || |/ ` |/ ` |/ ...
1 view0 comments
cedarcantab
Jan 17, 202411 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Weld Joint
The WeldJoint class represents a joint that “welds” two bodies together. This can be used to fix two bodies together as one, then removed...
8 views0 comments
cedarcantab
Aug 28, 20239 min read
Extending Box2D-Lite in Javascript: Reboot
I was almost obsessed with converting Box2D-Lite into Javascript. It's been over a year since I completed the project, and I had not...
12 views0 comments
cedarcantab
Aug 10, 20233 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Pulley Joint
The PulleyJoint class represents a joint connecting two bodies by a fixed length “rope.” The PulleyJoint only limits translation along...
4 views0 comments
cedarcantab
Aug 9, 20235 min read
Extending Box2D-Lite in Javascript: Block Solver
We can solve a small number of constraints simultaneously to improve SI. For example, in 2D collision between convex shapes there is one...
16 views0 comments
cedarcantab
Aug 9, 20232 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Line Constraint
The line constraint is a constraint that restricts the movement of a pair of bodies to a prescribed "line". Dyn4j sites a car on a roller...
1 view0 comments
cedarcantab
Aug 8, 20231 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Angle Constraint
The AngleJoint class represents a joint connecting two bodies limiting their angles. This is similar to the RevoluteJoint when limits are...
0 views0 comments
cedarcantab
Aug 7, 20232 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Max Distance Constraint
As a follow up post to the Distance Constraint post, we can also create a maximum distance constraint using the same solution we found in...
5 views0 comments
cedarcantab
Aug 6, 20234 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Motor Constraint
// MIT License // Copyright (c) 2019 Erin Catto // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
4 views0 comments
cedarcantab
Jul 17, 20237 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Mouse Grabber Joint [WIP]
mouse constraints. It is a very easy constraint to implement, and you don’t need any broad phase or narrow phase, just the resolution...
5 views0 comments
cedarcantab
Jul 17, 202312 min read
Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Prismatic Constraint [WIP]
A prismatic constraint is like the line constraint except it does not allow rotation about the anchor point. the Prismatic Joint is just...
5 views0 comments
cedarcantab
Jul 2, 20235 min read
Marching Squares / Meta-Balls
The Marching Squares algorithm is a computer graphics technique used to generate contours for a two-dimensional scalar field, which is...
2 views0 comments
cedarcantab
Jun 29, 20232 min read
Shapematching [WIP]
The shape matching problem Consider a point set (the black points below) that defines a certain rigid shape. Suppose you move these...
1 view0 comments
cedarcantab
Jun 23, 20233 min read
Extending Box2D-Lite in Javascript: Distance Joint
It's been a while since I finished with my walkthrough of Box2D-Lite. I thought I would add features that are not available in the...
12 views0 comments
cedarcantab
Jun 22, 20234 min read
Softbody Physics [WIP]
function CreateBall(x, y, radius, res) { var offset = 0; for (var i = 0; i < Math.PI 2; i += Math.PI 2 / res) { var cx = x +...
2 views0 comments
cedarcantab
Jun 17, 20231 min read
Verlet Physics+ Circle vs Circle Collision
class Dot extends Phaser.Geom.Point { constructor(scene, x, y, r) { super(x, y); this.scene = scene; // console.log("TIME=",...
9 views0 comments
cedarcantab
Jun 15, 202314 min read
Verlet Physics: Convex Polygon Collisions
Rigid Bodies class Vertex { constructor(world, body, x, y) { this.position = new Phaser.Math.Vector2(x,y); this.oldPosition = new...
4 views0 comments
cedarcantab
Sep 25, 20221 min read
Box2D-Lite Walkthrough in Javascript: Warm Starting
All my Box2D-Lite posts have been transferred to my new blog site: Introduction Different Spaces and Drawing Boxes Unconstrained Dynamics...
43 views0 comments
cedarcantab
Sep 21, 20221 min read
Box2D-Lite Walkthrough in Javascript: Softening constraints
All my Box2D-Lite posts have been transferred to my new blog site: Introduction Different Spaces and Drawing Boxes Unconstrained Dynamics...
24 views0 comments
Home: Blog2
Home: 配信登録
bottom of page