Re: rotate 3D model using javascript

119 views
Skip to first unread message
Message has been deleted

Nymor

unread,
Sep 4, 2011, 10:44:41 AM9/4/11
to KML Developer Support - Google Earth Plug-in
Hi,

model.getOrientation().setHeading(yourHeading);

where model is your model object.

Hope that helps.

Regards
Nymor


On Sep 4, 3:21 pm, ar2k wrote:
> Hi,
>
> I'm trying to place a ship model on a map from dynamic data generated by AIS
> data (in the form of an XML file). The models have been produced, the models
> place on the map perfectly however orientating the model based on the ships
> heading is proving a difficulty. I'm trying to avoid using KML files as the
> script in the page loads the XML data with the ship latitude, longitude and
> heading. Is there a command for setting the orientation of the model before
> placing it? I read somewhere about containers, would this be the solution?
>
> Page is question :http://ardev.redfunnel.co.uk/ge.html
>
> Apologies if my code is messy, never been good at keeping things tidy! :)

ar2k

unread,
Sep 4, 2011, 10:55:25 AM9/4/11
to google-earth-...@googlegroups.com
Thats exactly what i was after! Thanks for the help and quick response! :)
Reply all
Reply to author
Forward
0 new messages