Browse Search Popular Register Upload Rules User list Login:
Search:
DriftCar DEMO

Image:
screenshot of the scene

Author: JakubKubo

Group: Default

Filesize: 15.45 kB

Date added: 2017-02-12

Rating: 5.6

Downloads: 391

Views: 361

Comments: 10

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Use (silly) drifting script in wheels

Control - Arrow keys
Green = full grip
Red = wheel slip
Last edited at 2017/02/12 20:50:33 by JakubKubo
Please log in to rate this scene
edit
Similar scenes
Title: Driftcar
Rating: 5.625
Filesize: 13.21 kB
Downloads: 480
Comments: 1
Ratings: 2
Date added: 2018/03/28 10:20:23
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: stick on skate DEMO
Rating: 5
Filesize: 0.52 MB
Downloads: 507
Comments: 1
Ratings: 1
Date added: 2011/04/28 11:00:37
Made with: Phun
Rating: rated 5
download
Title: Cut the rope (demo)
Rating: 5
Filesize: 279.33 kB
Downloads: 769
Comments: 0
Ratings: 1
Date added: 2013/09/09 11:17:46
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Day of Mayhem demo (crushable cars)
Rating: 5
Filesize: 342.13 kB
Downloads: 1466
Comments: 0
Ratings: 1
Date added: 2022/05/08 21:51:12
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Assasins creed demo
Rating: 5
Filesize: 80.95 kB
Downloads: 706
Comments: 0
Ratings: 1
Date added: 2009/07/18 01:43:34
Made with: Phun
no image found for this scene
Rating: rated 5
download
Title: Algodoo flight sim (Tech Demo)
Rating: 5
Filesize: 0.91 MB
Downloads: 558
Comments: 2
Ratings: 1
Date added: 2014/11/29 11:56:48
Made with: Algodoo v2.1.0
Rating: rated 5
download
could you please help me with a script? I want that rotates a motor in the direction where my mouse.
You're doing EXACTLY the same than what I'm doing right now, but you're still some time behind. I'll post my take later today, and maybe you'll be able to help me improve it
I will try to help both of you :tup:
thanks:D
FLO1:
Create new hinge (no brake, no input, no motor) and open script menu,
rewrite this:

Bend from False to True
BendConstant from NaN to 0 (you can try other numbers later)
BendTarget from NaN to

{math.atan2(App.mousePos(1)-(scene.entityByGeo­mID((readable(entity)).geom0)).pos(1),
App.mousePo­s(0)-(scene.entityByGeomID((readable(entity)).geom­0)).pos(0))}


If you will have any problems contact me here:
https://www.facebook.com/groups/144010069368212
Well from what I'm seeing your wheel is better than the K-Wheel, as it only spawns 1 entity per step and seems to work okay. But it drifts uncontrollably and you didn't add any handbrake. Also what type of traction does it have?
I'll explain how my scene works on my scene's comment section
oh, thank you very very much:tup: :tup: :tup:
I'm sorry, somehow the code {math.atan2(App.mousePos(1)-(scene.entityByGeomID(­(readable(entity)).geom0)).pos(1),
App.mousePos(0)­-(scene.entityByGeomID((readable(entity)).geom0)).­pos(0))} works at BendTarget not)|( :x
Last edited at 2017/02/15 18:26:30 by FLO1
Just start over, put

bend = true
bendConstant = +inf and
bendTarget = 0.0

and write this in the postStep of the axle:

(e)=>{
g0 := Scene.entityByGeomID((readable(owner)).geom0);
bendTarget = math.atan2(g0.pos(1) - app.mousePos(1), g0.pos(0) - app.mousePos(0))
}

You should open this from a web browser and just copy it to be sure that there are no mistakes
OK