Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Balls bounce/float around within a cube

shootjutsu Absent
Registered User
Join date: 28 Oct 2009
Posts: 15
12-08-2009 20:33
Hi everybody

I wish you guys could help me with this.
I want to make molecules to float and bounce within a cube, however, right now my molecules keep floating out of the box, which is incorrect.

Can anybody who knows how to code this?
Please help, thank you very much in advance.


Regards
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-08-2009 21:09
two tricks when dealing with physics.... either make the box wals thicker (to allow the physics engine more time to catch it) or use multple layer of boxes which can all occupy the same space (allowing the physics engine more chances to catch it early)

I use the same tricks for axle bearings in my simple trebuchet av tosser (I can get a good 3 sims toss)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
Look for me in world...
12-09-2009 08:52
...or, teleport to Loon/128/250 (approximate) and look for the chemical reactor with big hydrogen and oxygen atoms floating around in it.

That chemical reactor is a freebie with open source scripts in it (all by me).

Enjoy,
lee
_____________________
So many monkeys, so little Shakespeare.
shootjutsu Absent
Registered User
Join date: 28 Oct 2009
Posts: 15
12-16-2009 01:05
Hi may I know how can I copy it?
There is the cylinder which I keep clicking on, I cant seems to click the ion and copy it.
Could you please teach me what to do?
Sorry if I sound noob.
Thank you.
shootjutsu Absent
Registered User
Join date: 28 Oct 2009
Posts: 15
12-16-2009 02:01
Hey hi.
Thanks for the ball. I can copy and I saw the codes.
The codes make the molecules float upwards wherever it is.
I tried put them into a container and lift it up higher abit and let it drop, it will drop on the floor and bounce to the corners of the container. Then it stops.

Do you have any idea to make it bounce infinitely around the box container and keep on bouncing everywhere inside?