Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

Positioning Cylinders

$
0
0

Hi

 

I'm totally new to Babylon, but have to complete a project

I'd be really grateful for anyones help on here

 

I have a sphere, made to look like the earth

I have a coordinate system, that positions bars around the Earth's surface according to a lat/long

now what I do, is take the Earth as the first sphere, create a sphere on its surface where say London is

Then join them by a cylinder

Learnt that from a topic on here

Then make the length of the cylinder too long, so it sticks out from the earths surface

its to represent something, so say London has 50% smog, New York 10%, Delhi 100%

and you can visualise different things around the world

anyways, it now seems we need 4 bars to protrude at each location

I have one cylinder in place, I need to position 4 thinner cylinders at the end of the larger cylinder

to form a kind of mini bar chart at each location

but I'm completely stumped about how to do this

I can do one, its centered on the larger cylinder on the same axis at the same angle

I want to shift each of them off center of the larger cylinder

any help would be much appreciated!

Many thanks

(I dont know if this is hard or easy)


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>