Examples from the playground

ahh, interesting subject! I’d go topic-wandering WITH you about that, and all sorts of spacecraft things, especially over-shoot problems in the math of auto-pilot and rotation-nulling, but, a few people are leaning on me… regarding topic-drifting/cluttering. I barfed quite a bit of fluff in my previous post, already. :slight_smile: (refuel at a nude beach?) :slight_smile: ahem.

Meantime, here’s a PG DB search for ropeImpostor || clothImpostor, a couple of new features of AmmoJS physics engine, and their cool new impostor methods… addAnchor and addHook. Someone has created some tasty testing playgrounds. Thanks, whomever!

image

https://www.babylonjs.com/demos/glowingespilit/

1 Like

image

https://www.babylonjs.com/demos/pointlightshadowmap/

That’s fuckin cool…

Have you ever thought of using a sphere as a basic framework for a flying object? Rotation problems shouldn’t be weighted here, because the ball would be constantly in rotation… The control would have to be done in another way… possibly the rotation creates electromagnetic force fields with these forces one can move in space and possibly in time…?!

image
https://www.babylonjs-playground.com/#PGY5FG

A physics engine should simulate such elektro magnetism fields too! Do you know such an engine?

And here is an other mesh writer:


https://www.babylonjs-playground.com/#PL752W#1

Greetings from the Matrix…

https://www.babylonjs-playground.com/#2I28SC#6

or this one


https://www.babylonjs-playground.com/#2I28SC#7

2 Likes

Aaah… La Mer!

https://playground.babylonjs.com/#H3E9EF

3 Likes

Aaah… Sous Le Ciel de Paris!

image
https://www.babylonjs-playground.com/#HH8T00#1

image

https://playground.babylonjs.com/#AJA5J6#5

Oh God, more opportunity for topic drift. heh

All 3 of our physics engines will do gravity wells and magnetic fields and simlar. Ya just gotta code it. :slight_smile: YOU decide when the gravitational pull of a planet/other force… starts pulling on your craft… but its always done with .setLinearVelocity() and setAngularVelocity()… and applyForce. Lin/Ang damping is also available (friction).

In a spherical craft… I would think the poles are still important, as well as “up-right-ness” with any planet you are orbiting.

1 Like

Yes we are drifting from the topic… :smiley: … we have even left the orbit! LOL

1 Like

Wow, there’s an official extension for Digital rain and a ocean as well… That’s amazing I had no idea there were these extensions: Babylon.js Documentation

One of my “by-products” during development.
Move the camera in all directions to see all aspects of the construction.


https://www.babylonjs-playground.com/debug#2IUA4B

1 Like

Circus cannon shoot ball into hoop

image

https://www.babylonjs-playground.com/#R8ZH46#9

press u for up
press d for down
press e for left
press f for right
press space for boom! :slight_smile:

1 Like

An other tiny little routine for a shooting game:

image

https://www.babylonjs-playground.com/#04S6Q5#4

press a for turn left the cannon
press d for turn right the cannon
press s for shoot
press cursor-right for move the cannon right horicontally
press cursor-left for move the cannon left horicontally

1 Like

added up and down… it was bothering me :smiley:

https://www.babylonjs-playground.com/#04S6Q5#5

https://www.babylonjs-playground.com/#ACPMQL#2
How to handle portals.

I stumbled across this and was impressed

4 Likes

A portal is an other scene within a scene? Realy cool! :slight_smile:

By the way it is very easy to insert a picture into a contribution:
simple snapshot a picture from screen into the clipboard and paste it here.

4 Likes

Hey, good job! :slight_smile:

This is the main idea behind this thread : to collect all possible puzzles and enhance them to have at last a lot of moduls which can be used simply in your own projects.

2 Likes