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

Linear Equations: Gauss-Seidel
The Gauss-Seidel method is an iterative technique used to solve a system of linear equations. Here’s how it works: System of Equations:...
cedarcantab
Mar 16, 20243 min read
7 views
0 comments
Blob Physics
https://www.gamedev.net/forums/topic/579014-blob-physics-tutorial/
cedarcantab
Mar 16, 20241 min read
3 views
0 comments
Position Based Dynamics
class Vertex { constructor(world, body, x, y) { this.position = new Phaser.Math.Vector2(x,y); this.oldPosition = new...
cedarcantab
Mar 14, 20247 min read
12 views
0 comments

Spring Model Soft body Physics
Inspired by this youtube video here In P5!!! by kraftpy class MassPoint { constructor(x, y, mass, radius, frictionCoeff){ this.pos =...
cedarcantab
Mar 14, 20244 min read
4 views
0 comments
Buoyancy
<!DOCTYPE html> <html> <head> <title>Buoyancy demo - p2.js physics engine</title> <script src="../build/p2.js"></script> <script...
cedarcantab
Mar 14, 20242 min read
3 views
0 comments

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_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
GJK, Part XX: Distance to Polygon
// GJK using Voronoi regions (Christer Ericson) and Barycentric coordinates. void b2Distance(b2DistanceOutput* output, b2SimplexCache*...
cedarcantab
Mar 6, 20247 min read
9 views
0 comments
Home: Blog2
Home: 配信登録
bottom of page