Oncollide y velocity

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

Oncollide y velocity

Postby sbrown » Sat Sep 26, 2009 2:09 am

Is it possible to do a e.other. for velocity(y)?

I want to emulate a explosion when something touches a box.
admin wrote:I get the impression that this fellow is not best friends with the community since he is trumpeting out the secret phunland community discount to the world. I sense evil.
User avatar
Posts: 51
Joined: Wed Sep 02, 2009 7:42 am

Re: Oncollide y velocity

Postby standardtoaster » Sat Sep 26, 2009 2:31 am

-_- How many times do I need to tell you people?! You cannot change velocity onCollide unless you want to use materialVelocity, but using materialVelocity it only works on the X axis and is not an immediate change.
User avatar
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Oncollide y velocity

Postby cdh473 » Sat Sep 26, 2009 3:21 am

standardtoaster wrote:using materialVelocity it only works on the X axis.

Well then, just rotate the view! (and all the other stuff :P)
Please excuse my posts. I am extremely stupid.
User avatar
Posts: 816
Joined: Tue Sep 01, 2009 12:37 am
Location: Yes

Re: Oncollide y velocity

Postby Username? » Wed Sep 30, 2009 3:18 pm

:lol: this question was asked on the phun forum a lot of times
I hope in the future it will be possible to do.
But when you spawn it, you're able to set [ := ] it.

You can respawn the thing, it touches, and then set your velocity.
Check my most scripted scene
Code: Select all
____.<=/`°`    #<°^==>._____
     ``         ´´  ´´
User avatar
Posts: 65
Joined: Sun Sep 20, 2009 8:06 pm

Re: Oncollide y velocity

Postby thebeech » Fri Oct 02, 2009 10:23 pm

or you could make it so that it spawns whatever object that has just hit it, well with circles and boxes anyway :) definitely circles :)
Posts: 241
Joined: Mon Aug 31, 2009 8:32 pm
Location: Your Hardrive

Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests