Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 832 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Bicycle Physic #180205
01/27/08 20:16
01/27/08 20:16
Joined: Nov 2006
Posts: 33
A
alfredm Offline OP
Newbie
alfredm  Offline OP
Newbie
A

Joined: Nov 2006
Posts: 33
hello guys
i need a bycycle or Bike Physic code
is there anybody help me
thanks

Last edited by alfredm; 01/27/08 20:23.
Re: Bicycle Physic [Re: alfredm] #180206
01/30/08 19:10
01/30/08 19:10
Joined: Feb 2006
Posts: 76
Mi
H
Havoc22 Offline
Junior Member
Havoc22  Offline
Junior Member
H

Joined: Feb 2006
Posts: 76
Mi
There is a car physics example, maybe looking at that would be a good start. It probably wouldn't have any leaning, like a bike would need to work properly. I'm not great with coding, but that's exactly where I would start.

Re: Bicycle Physic [Re: Havoc22] #180207
01/30/08 19:16
01/30/08 19:16
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
yes, use the car example as a starting point and remove 2 tires. i am not sure though how the handling of a bicycle with spherical tires would be like (it would be fun to test this with a real bike ). for better collision shapes you would have to use a different physics engine.

Re: Bicycle Physic [Re: ventilator] #180208
01/30/08 19:41
01/30/08 19:41
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
I've actually tried this, removing two tires does not work properly in balance initially. After modifying the code to only have a 2 wheel setup, the vehicle moves properly, but its balance makes it unable to drive without tipping in a matter of seconds. Maybe add a .roll/.tilt or something in correlation with speed so that the bike can lean without tipping. Just an idea.

But in essence and it's basic idea, you can modify the physics to get 2 wheels - but then you'll just have balancing issues. Hope this helps.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Bicycle Physic [Re: ISG] #180209
01/30/08 19:48
01/30/08 19:48
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
once it rolls fast enough it should be able to keep the balance like a real bicycle. starting could be a bit tricky. i would try to apply a torque which keeps it upright at low speeds or maybe you can simulate the bicyclist's feet somehow.

Re: Bicycle Physic [Re: ventilator] #180210
01/30/08 21:49
01/30/08 21:49
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
I have an update on my physics if anyones interested (it's for a motorcycle, similar to a bike). I apply plenty of torque to get it started at first, and once it gets moving it's easy to keep balanced. After created in level and left sit it starts tipping still, no max roll applied. I need to adjust the amount a wheel can turn left or right so turning and going in circles is much more capable.

Ventilator if your interested in the script/demo level let me know if you have ideas on how to get it going well. Thanks.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Bicycle Physic [Re: ISG] #180211
01/30/08 22:03
01/30/08 22:03
Joined: Feb 2006
Posts: 76
Mi
H
Havoc22 Offline
Junior Member
Havoc22  Offline
Junior Member
H

Joined: Feb 2006
Posts: 76
Mi
I'd be interested to see how you got it working. If you're willing to set up a demo level I'd have a big smile on my face if you included an incline to play with the cycle on.

Re: Bicycle Physic [Re: Havoc22] #180212
01/31/08 01:38
01/31/08 01:38
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Well I can set up a demo level but it's not perfectly working yet. I'm trying to get the balancing issues implemented myself, however, with my limited time due to college it's sort of difficult.

This code is also for a client, I'll have to make sure I can give out a demo


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Bicycle Physic [Re: ISG] #180213
02/02/08 03:16
02/02/08 03:16
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Balancing shouldn't be too difficult? I had to do it with my newton physics character (haven't even referred to that in ages). The biggest issue was translating the velocities from local to world coords and back.


xXxGuitar511
- Programmer
Re: Bicycle Physic [Re: ventilator] #180214
02/02/08 15:06
02/02/08 15:06
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
You need to make invisible 2 wheels
if not you can't make the simulation
that is the secret use 4 wheels but make invisible 2
also the balacing can be simulated with animation

Last edited by Felixsg; 02/02/08 15:07.
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1