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
TriangleShape
class Triangle { constructor() { Triangle.constructor_.apply(this, arguments) } static constructor_() { this.p0 = null this.p1 = null...
cedarcantab
Mar 6, 20243 min read
9 views
0 comments

Closest Point to Polygon from Point
library of spatial predicates and functions I have a point that may be inside or outside a polygon, I need to find the nearest point ont...
cedarcantab
Mar 6, 20243 min read
14 views
0 comments

Test point inside Triangle
A typical application of barycentric coordinates is to parameterize triangles (or the planes of the triangles). Consider a triangle ABC...
cedarcantab
Mar 5, 20243 min read
1 view
0 comments

Closet Point on Triangle to Point
Given a triangle ABC and a point P, let Q describe the point on ABC closest to P. One way of obtaining Q is to rely on the fact that if P...
cedarcantab
Mar 5, 20244 min read
1 view
0 comments

GJK in Javascript, Part 2: Distance Between Polygons
In the previous post we looked into the Dyn4J implementation of the GJK algorithm to detect overlap between two convex shapes. That...
cedarcantab
Mar 3, 20247 min read
6 views
0 comments

Extending Box2D-Lite in Javascript: Clipping for Contact Points
This is a continuation of our look into the CollidePolgyons method. We have delved into the Lite implementation in quite some detail and...
cedarcantab
Feb 29, 20244 min read
16 views
0 comments
Douglas Peuker Algorithm
## Bing Certainly! The Ramer–Douglas–Peucker algorithm, also known as the Douglas–Peucker algorithm, is a method for simplifying a curve...
cedarcantab
Feb 12, 20243 min read
3 views
0 comments
Marching Cube
Grid Class class GRIDCELL { constructor(f, origin, scale) { this.pos = new Vector3(); // "position" of the cube this.f = f; this.origin =...
cedarcantab
Feb 12, 20242 min read
2 views
0 comments
Delaunay Triangulation
https://github.com/darkskyapp/delaunay-fast?tab=readme-ov-file var Delaunay; (function() { "use strict"; var EPSILON = 1.0 / 1048576.0;...
cedarcantab
Feb 12, 20248 min read
2 views
0 comments
Rigid Body with Particles like Noita [WIP]
https://youtu.be/prXuyMCgbTc PieKing1215/FallingSandSurvival: 2D survival game inspired by Noita and slightly Terraria (github.com)...
cedarcantab
Feb 11, 20241 min read
1 view
0 comments
Collision Filtering
b2Filter https://box2d.org/documentation/structb2_filter.html b2FilterData.b2FilterData = function () { this.categoryBits = 0x0001;...
cedarcantab
Feb 7, 20243 min read
6 views
0 comments
QuadTree [WIP]
/** * @author Timo Hausmann * @author Richard Davey <rich@photonstorm.com> * @copyright 2015 Photon Storm Ltd. * @license ...
cedarcantab
Feb 6, 20246 min read
2 views
0 comments
Uniform Grid
/* ____ _ / ___|| | _____ | | | | _ | __ | | _____ _ \___ \| |/ \ \ /\ / / || |/ ` |/ ` |/ ...
cedarcantab
Feb 6, 20244 min read
2 views
0 comments

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...
cedarcantab
Aug 28, 20239 min read
12 views
0 comments

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...
cedarcantab
Aug 10, 20233 min read
4 views
0 comments

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...
cedarcantab
Aug 9, 20235 min read
17 views
0 comments

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...
cedarcantab
Aug 9, 20232 min read
1 view
0 comments

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...
cedarcantab
Aug 8, 20231 min read
0 views
0 comments

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...
cedarcantab
Aug 6, 20234 min read
4 views
0 comments
![Extending Phaser 3 Geom.Rectangle to Box2D-Lite, Part XX: Mouse Grabber Joint [WIP]](https://static.wixstatic.com/media/e41812_8a029429003d4a64bbe39e46c29902a6~mv2.png/v1/fill/w_291,h_94,fp_0.50_0.50,q_95,enc_avif,quality_auto/e41812_8a029429003d4a64bbe39e46c29902a6~mv2.webp)
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...
cedarcantab
Jul 17, 20237 min read
5 views
0 comments
Home: Blog2
Home: 配信登録
bottom of page