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


LCP
The Linear Complementarity Problem (LCP) is a fundamental concept in mathematical optimization and computational mechanics. It involves...
cedarcantab
Mar 12, 20244 min read
6 views
0 comments


p2 AABB
What is an AABB? An Axis-Aligned Bounding Box is a rectangular box that fully encloses a 3D object or scene, with its edges aligned with...
cedarcantab
Mar 12, 20244 min read
1 view
0 comments
p2 Narrowphase
var vec2 = require('../math/vec2') , sub = vec2.subtract , add = vec2.add , dot = vec2.dot , rotate = vec2.rotate , normalize =...
cedarcantab
Mar 11, 202424 min read
0 views
0 comments
p2 m joint
<!DOCTYPE html> <html lang="en"> <head> <title>p2.js Canvas mousejoint example</title> <meta charset="utf-8"> <script...
cedarcantab
Mar 10, 20242 min read
3 views
0 comments
p2 Intersection
/** * Get the intersection point between two line segments. * @static * @method getLineSegmentsIntersection * @param {Array} out * @param...
cedarcantab
Mar 10, 20241 min read
3 views
0 comments
p2 Circle
var Shape = require('./Shape') , vec2 = require('../math/vec2') , shallowClone = require('../utils/Utils').shallowClone; ...
cedarcantab
Mar 10, 20242 min read
6 views
0 comments
p2 Convex
var Shape = require('./Shape') , vec2 = require('../math/vec2') , dot = vec2.dot , polyk = require('../math/polyk') , ...
cedarcantab
Mar 10, 20245 min read
1 view
0 comments
p2 Raycast Result
var vec2 = require('../math/vec2'); var Ray = require('../collision/Ray'); module.exports = RaycastResult; /** * Storage for Ray...
cedarcantab
Mar 10, 20242 min read
6 views
0 comments
p2 Body
var vec2 = require('../math/vec2') , add = vec2.add , sub = vec2.subtract , vec2create = vec2.create , decomp =...
cedarcantab
Mar 10, 202419 min read
1 view
0 comments
p2 Raycast
module.exports = Ray; var vec2 = require('../math/vec2'); /** * A line with a start and end point that is used to intersect shapes. For...
cedarcantab
Mar 9, 20244 min read
3 views
0 comments


Planes & Halfspaces
A plane in 3D space can be thought of as a flat surface extending indefinitely in all directions. It can be described in several...
cedarcantab
Mar 8, 20244 min read
3 views
0 comments
![Sweep and Prune [WIP]](https://static.wixstatic.com/media/e41812_88f4029d4f2c4543bd034a51cfe097e5~mv2.png/v1/fill/w_309,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/e41812_88f4029d4f2c4543bd034a51cfe097e5~mv2.webp)
![Sweep and Prune [WIP]](https://static.wixstatic.com/media/e41812_88f4029d4f2c4543bd034a51cfe097e5~mv2.png/v1/fill/w_344,h_278,fp_0.50_0.50,q_95,enc_avif,quality_auto/e41812_88f4029d4f2c4543bd034a51cfe097e5~mv2.webp)
Sweep and Prune [WIP]
The brute-force implementation of broad phase for n objects consists in conducting n(n-1)/2 collision tests. Thus it has a complexity of...
cedarcantab
Mar 6, 20243 min read
1 view
0 comments
p2 world
var GSSolver = require('../solver/GSSolver') , vec2 = require('../math/vec2') , Shape = require('../shapes/Shape') , ...
cedarcantab
Mar 6, 202416 min read
4 views
0 comments


p2 sweep & prune
a.k.a. Sort and sweep For each axis, Create sorted list of start and end points of intervals for each box (use Insert Sort to exploit...
cedarcantab
Mar 6, 20244 min read
3 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


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
18 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
Home: Blog2
Home: 配信登録
bottom of page