Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
need help with pivoting
Old
ol120
Guest
 
Status:
Posts: n/a
Default need help with pivoting - 08-17-2008, 07:30 PM

hello I have been trying to make an RPG and I have found that when I try to make a door open it pivots where the doorknob is and not where the hinges hypothetically are

could I have some help?
   
Reply With Quote
Correctly opening door.
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Correctly opening door. - 08-18-2008, 06:27 AM

One of the unavoidable problems with Alice (it would have been very difficult to implement the option) is that you cannot move the origin and axis of an object from within the program. You have three options, listed by increasing difficulty.

1. Use the school object from Environments in the web gallery. That door works "normally."
2. Add a dummy object that rotates "correctly" and then make it the vehicle for your door. This will take some experimenting, but you should be able to get it to work.
3. Make your own door in a program such as Anim8or and set the axis where you want. Then import it into Alice. For more detail on this option, browse through the "Share Objects" section of the forum. Since a door is a fairly simple object, it is a very nice object for your first try at this approach.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 08-18-2008, 07:29 AM

Quote:
Originally Posted by ol120 View Post
hello I have been trying to make an RPG and I have found that when I try to make a door open it pivots where the doorknob is and not where the hinges hypothetically are

could I have some help?
Without looking at the model for the door, it sounds like you might have a center point problem. Go to http://www.dickbaldwin.com/tocalice.htm and study up on center points, turning, rolling, and "as seen by".

If the center point is actually at the doorknob (which seems a little strange), you could probably attach an invisible magician's wand to the hinge side of the door and rotate the door "as seen by" the wand to make it appear to be rotating around the hinges.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Old
ol120
Guest
 
Status:
Posts: n/a
Default 08-18-2008, 07:52 AM

alright thanks!
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.