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 lock constraint
var Constraint = require('./Constraint') , vec2 = require('../math/vec2') , Equation = require('../equations/Equation'); ...
cedarcantab
Apr 12, 20243 min read
2 views
0 comments
p2 gear constraint
var Constraint = require('./Constraint') , AngleLockEquation = require('../equations/AngleLockEquation') , Utils =...
cedarcantab
Apr 12, 20242 min read
1 view
0 comments
p2 distance constraint
var Constraint = require('./Constraint') , Equation = require('../equations/Equation') , vec2 = require('../math/vec2'); ...
cedarcantab
Apr 12, 20244 min read
1 view
0 comments
p2 constraint
module.exports = Constraint; /** * Base constraint class. * * @class Constraint * @constructor * @author schteppe * @param {Body} bodyA...
cedarcantab
Apr 12, 20242 min read
0 views
0 comments
p2 broadphase
base class var vec2 = require('../math/vec2'); var Body = require('../objects/Body'); module.exports = Broadphase; /** * Base class for...
cedarcantab
Apr 12, 20245 min read
0 views
0 comments
allocator
(flyover) in world class //b2BlockAllocator m_blockAllocator; //b2StackAllocator m_stackAllocator; // Size the island for the worst case....
cedarcantab
Apr 12, 20242 min read
0 views
0 comments
allocator
in world.solve b2World.prototype.Solve = function (step) { var b; for (var controller = this.m_controllerList; controller; controller =...
cedarcantab
Apr 12, 20245 min read
0 views
0 comments
pressure model 2
//https://github.com/maciejmatyka/sykofi2 //https://github.com/maciejmatyka/sykofi2/blob/master/KodyZrodlowe/Rozdzial2/softbody.html //...
cedarcantab
Apr 10, 20244 min read
4 views
0 comments
springbody-jc
internalspring.h #ifndef _INTERNAL_SPRING_H #define _INTERNAL_SPRING_H #include "Vector2.h" namespace JellyPhysics { class...
cedarcantab
Apr 9, 20242 min read
3 views
0 comments
pointmass-jc
cpp #include "PointMass.h" #include <stdio.h> namespace JellyPhysics { PointMass::PointMass( float mass, const Vector2& pos ) {...
cedarcantab
Apr 9, 20241 min read
3 views
0 comments
pressurebody-jc
h #ifndef _PRESSURE_BODY_H #define _PRESSURE_BODY_H #include "SpringBody.h" namespace JellyPhysics { class PressureBody : public...
cedarcantab
Apr 9, 20242 min read
8 views
0 comments
world-jc
cpp #include "World.h" namespace JellyPhysics { World::World() { mMaterialCount = 1; mMaterialPairs = new MaterialPair[1];...
cedarcantab
Apr 9, 202410 min read
2 views
0 comments
closedshape-jc
cpp #include "ClosedShape.h" #include "VectorTools.h" namespace JellyPhysics { void ClosedShape::begin() { mLocalVertices.clear();...
cedarcantab
Apr 9, 20241 min read
2 views
0 comments
body-jc
cpp #include "Body.h" #include "World.h" #include "VectorTools.h" #include <stdio.h> namespace JellyPhysics { void...
cedarcantab
Apr 9, 20247 min read
2 views
0 comments
aabb-jc
cpp #include "AABB.h" namespace JellyPhysics { AABB::AABB( const Vector2& minPt, const Vector2& maxPt ) { Min = minPt; Max =...
cedarcantab
Apr 9, 20241 min read
2 views
0 comments
balloon by himself
//https://github.com/maciejmatyka/sykofi2 //https://github.com/maciejmatyka/sykofi2/blob/master/KodyZrodlowe/Rozdzial2/softbody.html //...
cedarcantab
Apr 9, 20244 min read
2 views
0 comments
Squishy Circle
// https://www.gorillasun.de/blog/soft-body-physics-and-blobs/ let palette = ["#0a0a0a", "#f7f3f2", "#0077e1", "#f5d216", "#fc3503"],...
cedarcantab
Apr 9, 20244 min read
2 views
0 comments
Particles in Box WebGL
//https://codepen.io/silashenderson/pen/ExpxPOZ /* Constants */ let updates_per_frame = 20; let dt = .005; let spring_rad ...
cedarcantab
Apr 9, 20243 min read
3 views
0 comments
snippable box
//https://codepen.io/silashenderson/pen/xxqOQEb?editors=1010 let ctx = canvas.getContext('2d'); let pos = PosGrid(20,20,250,250, 20);...
cedarcantab
Apr 9, 20242 min read
3 views
0 comments
tnk
var points={'x':[],'y':[]};//empty data set(used in interpolation) var edgeDistance=0.3;//interpolation accuracy lower is less accurate ...
cedarcantab
Apr 4, 20247 min read
2 views
0 comments
Home: Blog2
Home: 配信登録
bottom of page