mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
helicopter
This commit is contained in:
parent
db7bb61209
commit
82dbdec78c
1 changed files with 16 additions and 0 deletions
16
examples/helicopter/helicopter.js
Normal file
16
examples/helicopter/helicopter.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
var modelURL= "https://s3.amazonaws.com/hifi-public/eric/models/helicopter.fbx";
|
||||
var center = Vec3.sum(MyAvatar.position, Vec3.multiply(3, Quat.getFront(Camera.getOrientation())));
|
||||
|
||||
var helicopter = Entities.addEntity({
|
||||
type: "Model",
|
||||
modelURL: modelURL,
|
||||
position: center
|
||||
});
|
||||
|
||||
|
||||
|
||||
function cleanup() {
|
||||
Entities.deleteEntity(helicopter);
|
||||
}
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue