J.Todd
J.Todd

Reputation: 827

What the ratio is between 1 unit in Three.js and 1 unit in Oimo.js?

Three.js of course has its own sizing system for when you create an object, but when combining Three.js with a physics system oimo.js, oimo has its own sizing system for the collision geometry, but oimo doesn't render anything on its own, so I'm confused as to how I'm supposed to figure out what the ratio is between 1 unit in Three.js and 1 unit in Oimo.js. Perhaps it's 1:1? I could try to calibrate it visually with trial and error, but there must be a better solution.

Upvotes: 1

Views: 127

Answers (1)

manthrax
manthrax

Reputation: 5016

I bet they are both the same.. in that an Oimo box of size 1, is the same as a THREE.BoxGeometry(1,1,1). In terms of physics, I'd guess that in Oimo, 1 unit is 1 meter.

Upvotes: 2

Related Questions