How to Resize height or diameter of cylinder without scaling

Hello,

I have created a cylinder as “pole” of a camera.
But I need to simulate that camera change of altitude, and so to resize the “height” of the cylinder (and the y coordinate).
Is there a way to do that ?

let babHdl_5 = createCylinder(cameraPoleName, 0.1, // 10 cm standard pole
	jsnCamera.position.y, // height of camera upon the pole
	jsnCamera.position.x, 0, jsnCamera.position.z,	// base of pole
	new BABYLON.Color4(0, 0.8, 0, 1)	// color
)

Best regards.

Welcome! Scaling the pole would be the easiest thing to do. Why do you want to do it without scaling?

Hello,
Spontaneously, I think that scaling is not exact for size.
But perhaps am I wrong ?
Best regards.

Hello,
I have tried and it works perfectly. Just need to change the y coordinate too.
Thanks.

1 Like