Physics inside a closed circle

General Moho topics.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 7:26 am

Hi and welcome back to a New Year. I've been attempting to use physics inside a closed circle, with another ball within it to bounce off of the sides, used the folder to enable physics etc, but can't to date get it to work. Looked at 'key framing it' just doesn't quite look right, but may have to work on that further.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby hayasidist » Mon Jan 08, 2018 9:06 am

physics in the set-up you describe works fine and as expected here - what's the actual problem you're having?
User avatar
hayasidist
 
Posts: 1830
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 9:35 am

Hi Hayasidist my attempts so far haven't worked. I've set up the folder and layers in the folder, made the group folder named physics enabled, placed the other two vector layers inside - red ball is enabled and the other named non moving is 'enabled checked' and 'non moving' checked. The red ball drops a approx half a centimetres only - key frames made in timeline. TinyPic is no longer showing at all at the moment to upload.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 9:56 am

What I've found is that if I make a rectangle shape and cut out the middle with a circle it works. Otherwise it doesn't when ball is placed inside a closed circle at my end.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby slowtiger » Mon Jan 08, 2018 10:13 am

Well, doesn't that sound logical? Collision detection means recognising solid shapes. If you place some object inside another solid object, how should the software know what you mean? If you cut out a hole in a shape, you have empty space inside solid walls again, and it works fine.
AS 9.5 MacPro Quadcore 3GHz 16GB RAM OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB RAM OS 10.11 Quicktime 10.7.3
User avatar
slowtiger
 
Posts: 5189
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 10:28 am

Slowtiger, assuming there is no other method, I'd like to have more than one ball, and dropping into the now cut out circle shape from the rectangle, got any ideas how this can be achieved, there is no way I know of to cut out an entrance into the the circle via the rectangle containing the circle, so the balls can drop in. Once ball is out of the perimeter containing the cut out circle, the ball no longer responds to the physics of being inside but now just responds to the outer perimeter of the rectangle.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 10:36 am

One work around may be opacity setting. Will give it a go.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby hayasidist » Mon Jan 08, 2018 12:11 pm

you could have two copies of the ball:

copy1 already in the circle with physics off and not visible
copy2 outside the physics group and visually in front of the solid part of the container

animate copy2 arriving "in" the container, at which point:
switch visibility to copy1
physics nudge copy1
User avatar
hayasidist
 
Posts: 1830
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 12:25 pm

Thanks Hayasidist like the sound of that, at the moment trying to keep numerals like on a Bingo number from remaining in place whilst the physics is operating, attaching to bones presently doesn't work.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 12:29 pm

Looks like just place text on same layer as bouncing ball instead of a separate layer.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am

Re: Physics inside a closed circle

Postby jezjones29 » Mon Jan 08, 2018 4:06 pm

I'm not 100% sure what you're after, but maybe this will help:
https://www.animestudiotutor.com/shared_files?id=491
User avatar
jezjones29
 
Posts: 332
Joined: Tue Jan 31, 2006 9:43 pm
Location: Wales, UK

Re: Physics inside a closed circle

Postby hayasidist » Mon Jan 08, 2018 4:30 pm

nice one Jeremy! (now we know what the actual problem was!)
User avatar
hayasidist
 
Posts: 1830
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Physics inside a closed circle

Postby zoesan » Mon Jan 08, 2018 4:31 pm

Hi Jezjones, thanks for that, I did research on the web, but never came across this, the animation content in the process of making, with the aide of you animators out there, is being modified virtually live, since watching this video, ( I will watch again ) will now go back to the drawing board, the animation is for an article I'm putting together on Douglas Adams titled 42.
User avatar
zoesan
 
Posts: 145
Joined: Mon Jul 03, 2017 6:15 am


Return to General Moho Discussion

Who is online

Users browsing this forum: No registered users and 4 guests