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
Apr 124 min read
sopiro (js) aabbtree.
import { detectCollisionAABB, testPointInside, union, createAABB, fix } from "./aabb.js"; import { Type } from "./rigidbody.js"; import {...
0 views0 comments
cedarcantab
Apr 121 min read
p2 pool
module.exports = Pool; /** * Object pooling utility. * @class Pool * @constructor */ function Pool(options) { options = options || {}; ...
1 view0 comments
cedarcantab
Apr 126 min read
p2 contact equation
base equation class module.exports = Equation; var vec2 = require('../math/vec2'), scale = vec2.scale, multiply = vec2.multiply,...
1 view0 comments
cedarcantab
Apr 123 min read
p2 lock constraint
var Constraint = require('./Constraint') , vec2 = require('../math/vec2') , Equation = require('../equations/Equation'); ...
2 views0 comments
cedarcantab
Apr 122 min read
p2 gear constraint
var Constraint = require('./Constraint') , AngleLockEquation = require('../equations/AngleLockEquation') , Utils =...
1 view0 comments
cedarcantab
Apr 124 min read
p2 distance constraint
var Constraint = require('./Constraint') , Equation = require('../equations/Equation') , vec2 = require('../math/vec2'); ...
1 view0 comments
cedarcantab
Apr 122 min read
p2 constraint
module.exports = Constraint; /** * Base constraint class. * * @class Constraint * @constructor * @author schteppe * @param {Body} bodyA...
0 views0 comments
cedarcantab
Apr 125 min read
p2 broadphase
base class var vec2 = require('../math/vec2'); var Body = require('../objects/Body'); module.exports = Broadphase; /** * Base class for...
0 views0 comments
cedarcantab
Apr 122 min read
allocator
(flyover) in world class //b2BlockAllocator m_blockAllocator; //b2StackAllocator m_stackAllocator; // Size the island for the worst case....
0 views0 comments
cedarcantab
Apr 125 min read
allocator
in world.solve b2World.prototype.Solve = function (step) { var b; for (var controller = this.m_controllerList; controller; controller =...
0 views0 comments
cedarcantab
Apr 104 min read
pressure model 2
//https://github.com/maciejmatyka/sykofi2 //https://github.com/maciejmatyka/sykofi2/blob/master/KodyZrodlowe/Rozdzial2/softbody.html //...
2 views0 comments
cedarcantab
Apr 92 min read
springbody-jc
internalspring.h #ifndef _INTERNAL_SPRING_H #define _INTERNAL_SPRING_H #include "Vector2.h" namespace JellyPhysics { class...
3 views0 comments
cedarcantab
Apr 91 min read
pointmass-jc
cpp #include "PointMass.h" #include <stdio.h> namespace JellyPhysics { PointMass::PointMass( float mass, const Vector2& pos ) {...
3 views0 comments
cedarcantab
Apr 92 min read
pressurebody-jc
h #ifndef _PRESSURE_BODY_H #define _PRESSURE_BODY_H #include "SpringBody.h" namespace JellyPhysics { class PressureBody : public...
8 views0 comments
cedarcantab
Apr 910 min read
world-jc
cpp #include "World.h" namespace JellyPhysics { World::World() { mMaterialCount = 1; mMaterialPairs = new MaterialPair[1];...
2 views0 comments
cedarcantab
Apr 91 min read
closedshape-jc
cpp #include "ClosedShape.h" #include "VectorTools.h" namespace JellyPhysics { void ClosedShape::begin() { mLocalVertices.clear();...
2 views0 comments
cedarcantab
Apr 97 min read
body-jc
cpp #include "Body.h" #include "World.h" #include "VectorTools.h" #include <stdio.h> namespace JellyPhysics { void...
2 views0 comments
cedarcantab
Apr 91 min read
aabb-jc
cpp #include "AABB.h" namespace JellyPhysics { AABB::AABB( const Vector2& minPt, const Vector2& maxPt ) { Min = minPt; Max =...
2 views0 comments
cedarcantab
Apr 94 min read
balloon by himself
//https://github.com/maciejmatyka/sykofi2 //https://github.com/maciejmatyka/sykofi2/blob/master/KodyZrodlowe/Rozdzial2/softbody.html //...
2 views0 comments
cedarcantab
Apr 94 min read
Squishy Circle
// https://www.gorillasun.de/blog/soft-body-physics-and-blobs/ let palette = ["#0a0a0a", "#f7f3f2", "#0077e1", "#f5d216", "#fc3503"],...
2 views0 comments
Home: Blog2
Home: 配信登録
bottom of page