contant velocity

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

contant velocity

Postby mold999 » Sun Feb 27, 2011 6:39 am

Is there any way to make an object have a constant velocity? I'm using OnHitByLaser = (e)=>{e.this.vel = e.normal * 10 ? {} : {e.this.vel = e.normal * 10}} but it doesn't work.

Any ideas?
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]

Re: contant velocity

Postby Kilinich » Sun Feb 27, 2011 9:19 am

No. Velocity is even not readable. You can't set it for existing objects - it's only for spawning one.
So you need to use thruster or respawn object.
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: contant velocity

Postby mold999 » Wed Mar 02, 2011 2:05 am

Ok, thanks.
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests