materialvelocity question

About advanced scenes, and the Thyme scripting language used in Algodoo.

materialvelocity question

Postby jessebax129 » Thu Jan 06, 2011 2:54 pm

Hi I just made a scene which follows the mouse in the X line (like (0) in a variable) the code i used is {(hit1(0) - app.mousepos(0))*20} in a box with this code as materialvelocity it work and stuff but now i want it also to makt in move in the vertical directions (the (1) )
how can i do this with materialvelocity? or is there something equal to that to use? like in the new scene of kilinich (super fast mouse pointer)
Last edited by jessebax129 on Thu Jan 06, 2011 10:01 pm, edited 1 time in total.
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: materialvelocity question

Postby Kilinich » Thu Jan 06, 2011 9:48 pm

umm, exactly that is used in my scene, just dig it.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: materialvelocity question

Postby jessebax129 » Thu Jan 06, 2011 10:04 pm

I KNOW OYU USED THAT BUT HOW!!
I stripped the whole scene but how is is possible than is moves vertically??????? :crazy:
i dont understand, how can u use the materialvelocity to make te object move in an vertical direction :o
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: materialvelocity question

Postby Rideg » Thu Jan 06, 2011 10:23 pm

I made one that could move in both vertical and horizontal but not at the same time. Experiment with positive and negative values to do the same with horizontal. Remember. The material velocity won't be triggered unless it touches something.
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: materialvelocity question

Postby jessebax129 » Thu Jan 06, 2011 11:05 pm

yeah, uhm don't you understand me or something??
i CAN let it move on the X-axis, yes it works (positive is to the left and negative is to the rigt) I KNOW!!
but how can i let it move along the Y-axis (vertically)
don't come up with that I have to experiment with that, Do you really think i didn't already?? :wtf:
just say how to make it move on axis (1)
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: materialvelocity question

Postby Rideg » Thu Jan 06, 2011 11:30 pm

-.-' Fine!... Make a vertical plane and figure it out. Can't explain much more.
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests