Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Center Point
Old
pucu2
Guest
 
Status:
Posts: n/a
Question Center Point - 09-10-2010, 04:19 PM

Is there a way to change the center point of a model? I want to make my spaceship roll, but the horizontal line is on the very bottom, so the roll isn't right. I was wondering if I could move the line to the middle of the model. Is that possible?
   
Reply With Quote
It'll take effort.
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow It'll take effort. - 09-10-2010, 06:16 PM

Yes, but you'll need to download some 3-D editing programs like Blender, and it'll definitely take some work.
I'm not sure if it's worth it for just an off-center centerpoint, as there are simple workarounds.

If x2495iiii comes on later, he can give a better explanation/a tutorial.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 09-10-2010, 09:38 PM

Inside Alice, you can use the alternative method of using another object as a pivot. Insert a geometric shape, like a cone or bump, then move it so that it's center is at the center of the spaceship. Now, set the spaceship's vehicle to the shape, and you can have the shape turn and roll, making the ship turn along the shape's center point instead of its own.
   
Reply With Quote
Old
mbare
Guest
 
Status:
Posts: n/a
Default 09-11-2010, 06:36 AM

Good solution. So simple I thought it would be a "snap" to implement. Can you look at the attached and let me know why the "do together" does not run. When you disable the "turn forward" the ball and monkey travel forward.

The ball is big and striped so I can see what is going on.
Attached Files
File Type: a2w centerPointObject.a2w (718.9 KB, 7 views)
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-11-2010, 08:18 AM

That's because you're making the ball move forward AND turn forward at the same time. Since the ball moves forward relative to itself, and it's turning, the ball constantly is changing direction, resulting in the circular motion you see.

I assume that you want it to be like the monkey is rolling forward, and to do that simply change the ball turning forward to the monkey turn forward. And, since the monkey's pivot is off-center, click on "more" next to the turn forward and choose "asseenby=beachball"

Ex.
<monkey> setvehicle to <beachball> (just for future reference, if you go to the properties tab of an object, you can set the vehicle right there without having to put in in a method)
Do Together
<monkey> turn forward <4> revolutions; duration=<4> seconds; asSeenby <beachball>
<beachball> move forward <4> meters; duration=<4> seconds


I also attached the world:
Attached Files
File Type: a2w centerPointObject.a2w (718.9 KB, 7 views)


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
SlithyToves
Member
 
SlithyToves's Avatar
 
Status: Offline
Posts: 20
Join Date: Sep 2010
Location: USA
Default 09-13-2010, 08:44 PM

I am having this same problem with a Lego man I imported into Alice, but I am trying to make the person's leg turn, eventually to make him walk. The leg is a subpart and I am not sure how I would implement this workaround in a subpart:
Quote:
Originally Posted by x2495iiii View Post
Inside Alice, you can use the alternative method of using another object as a pivot. Insert a geometric shape, like a cone or bump, then move it so that it's center is at the center of the spaceship. Now, set the spaceship's vehicle to the shape, and you can have the shape turn and roll, making the ship turn along the shape's center point instead of its own.
See the attached world.
Attached Files
File Type: a2w legoguywalk.a2w (398.7 KB, 5 views)


SlithyToves

"Twas brillig, and the slithy toves
Did gyre and gimble in the wabe"
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 09-13-2010, 10:37 PM

You'd make the dummy object vehicled to whatever the subpart was vehicled to, then make the subpart vehicled to the dummy object.
   
Reply With Quote
Old
SlithyToves
Member
 
SlithyToves's Avatar
 
Status: Offline
Posts: 20
Join Date: Sep 2010
Location: USA
Default 09-13-2010, 10:48 PM

Thanks for your help. Should I put the dummy object at the place where I want the leg's pivot point to be?


SlithyToves

"Twas brillig, and the slithy toves
Did gyre and gimble in the wabe"
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 09-13-2010, 10:50 PM

Yes, and be sure to orient it properly as well so that turning and rolling it works properly.
   
Reply With Quote
Old
SlithyToves
Member
 
SlithyToves's Avatar
 
Status: Offline
Posts: 20
Join Date: Sep 2010
Location: USA
Default 09-13-2010, 10:55 PM

What is the proper position? (I assume you mean the dummy object.)
Thank you again!


SlithyToves

"Twas brillig, and the slithy toves
Did gyre and gimble in the wabe"
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.