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
p2 naive broadphase
var Broadphase = require('../collision/Broadphase'); module.exports = NaiveBroadphase; /** * Naive broadphase implementation. Does N^2...
cedarcantab
Apr 23, 20241 min read
3 views
0 comments
sopiro motor constranit
import { Matrix2, Vector2 } from "./math.js"; import { RigidBody } from "./rigidbody.js"; import { Settings } from "./settings.js";...
cedarcantab
Apr 21, 20243 min read
3 views
0 comments

sopiro prismatic constraint
import { Joint } from "./joint.js"; import { Matrix2, Vector2 } from "./math.js"; import { RigidBody, Type } from "./rigidbody.js";...
cedarcantab
Apr 21, 20243 min read
6 views
0 comments

Extending Box2D-Lite in Javascript: Support Point based SAT
Separating Axis Theorem utilising Support Points In my various implementations of the separating axis theorem for detecting collision...
cedarcantab
Apr 16, 20244 min read
34 views
0 comments
p2 contact material
module.exports = Material; /** * Defines a physics material. To be used with {{#crossLink "ContactMaterial"}}{{/crossLink}}. * @class...
cedarcantab
Apr 13, 20243 min read
2 views
0 comments
p2 demo constraints
<!DOCTYPE html> <html> <head> <title>Constraints demo - p2.js physics engine</title> <script src="../build/p2.js"></script> <script...
cedarcantab
Apr 13, 20241 min read
1 view
0 comments
p2 prismatic
var Constraint = require('./Constraint') , ContactEquation = require('../equations/ContactEquation') , Equation =...
cedarcantab
Apr 13, 20245 min read
2 views
0 comments
p2 example ragdoll
<!DOCTYPE html> <html> <head> <title>Ragdoll demo - p2.js physics engine</title> <script src="../build/p2.js"></script> <script...
cedarcantab
Apr 13, 20243 min read
2 views
0 comments
p2 spring
module.exports = Spring; /** * Base class for {{#crossLink "LinearSpring"}}{{/crossLink}} and {{#crossLink "RotationalSpring"}}{{/crossL...
cedarcantab
Apr 13, 20243 min read
1 view
0 comments
sopiro(js) ga
import { Vector2 } from "./math.js"; import * as Input from "./input.js"; import * as Util from "./util.js"; import { Camera } from...
cedarcantab
Apr 12, 20245 min read
1 view
0 comments
sopiro(js) settings
import { gWorld } from "./game.js"; import * as Util from "./util.js"; export var GenerationShape; (function (GenerationShape) {...
cedarcantab
Apr 12, 20245 min read
1 view
0 comments
sopiro(js) island
import { Vector2 } from "./math.js"; import { Settings } from "./settings.js"; export class Island { constructor(world) { this.bodies =...
cedarcantab
Apr 12, 20242 min read
2 views
0 comments
sopiro(js) edge
import { Vector2 } from "./math.js"; import * as Util from "./util.js"; export class Edge { constructor(p1, p2) { constructor(p1, p2, id1...
cedarcantab
Apr 12, 20241 min read
2 views
0 comments
sopiro(js) detection
import { Circle } from "./circle.js"; import { ContactManifold } from "./contact.js"; import { Edge } from "./edge.js"; import { Vector2...
cedarcantab
Apr 12, 20245 min read
1 view
0 comments
sopiro(js) contact
import { Matrix2, Vector2 } from "./math.js"; import { Settings } from "./settings.js"; import * as Util from "./util.js"; import {...
cedarcantab
Apr 12, 20246 min read
3 views
0 comments
sopiro(js) nsquared
import { createAABB, detectCollisionAABB } from "./aabb.js"; //N^2 broad phase, actually (N^2 - N) / 2 export function...
cedarcantab
Apr 12, 20241 min read
1 view
0 comments
sopiro(js) aabb
import { Box } from "./box.js"; import { Circle } from "./circle.js"; import { Vector2 } from "./math.js"; import { Polygon } from...
cedarcantab
Apr 12, 20242 min read
0 views
0 comments
sopiro (js) aabbtree.
import { detectCollisionAABB, testPointInside, union, createAABB, fix } from "./aabb.js"; import { Type } from "./rigidbody.js"; import {...
cedarcantab
Apr 12, 20244 min read
0 views
0 comments
p2 pool
module.exports = Pool; /** * Object pooling utility. * @class Pool * @constructor */ function Pool(options) { options = options || {}; ...
cedarcantab
Apr 12, 20241 min read
1 view
0 comments
p2 contact equation
base equation class module.exports = Equation; var vec2 = require('../math/vec2'), scale = vec2.scale, multiply = vec2.multiply,...
cedarcantab
Apr 12, 20246 min read
1 view
0 comments
Home: Blog2
Home: 配信登録
bottom of page