Alice Community  

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

Reply
 
Thread Tools Display Modes
collision speed.
Old
Someone
Junior Member
 
Status: Offline
Posts: 9
Join Date: Sep 2011
Question collision speed. - 10-10-2011, 04:35 PM

i want to know how to figure out the speed of object1 reletive to object2 that are not perallal to the the ground.
all i can think of is checking the distace of object1 above object2 2times with a time interval between them and using the differance to determin speed.
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Default 10-10-2011, 04:56 PM

Here's some example code.

The speed of object 1 relative to object 2 is recorded in the variable speed.

This code should work, correct me if I'm wrong.
Attached Images
File Type: jpg speed01.JPG (81.8 KB, 19 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
Someone
Junior Member
 
Status: Offline
Posts: 9
Join Date: Sep 2011
Default 10-11-2011, 07:43 PM

i alredy thought of that; i was looking for a way that would be faster it probably would have to use comandes the objects were curently executing along with their orentation and position
(i dont know who to use orentation/position of ojects in the program)
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Default 10-11-2011, 07:47 PM

To be honest Orientation and Position are two things Alice 2.2 failed to make completely functional. You can record them in a variable, but that's about it. I don't think manipulating them is possible.

Sometimes the easiest way is the best. =\


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
Someone
Junior Member
 
Status: Offline
Posts: 9
Join Date: Sep 2011
Default 10-13-2011, 04:40 PM

if you can you record them in a variable, then that is all i need along with knowing how to interpert them(i think that will not be too dificult).
a formula for relative speed will not be dificult to come up with(preaty good at math).
   
Reply With Quote
Reply

Tags
speed

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