x


How do I turn and tilt a bike with the iphone accelerometer?

hello guys, i am totally new in unity and i have been struggling with moving bike, turning and tilting with some specific degrees for over two weeks. i went through the star trooper example and used that script made some specific changes in it but still it is not smooth. i have applied the rigid body on my bike so facing the problem that if bike is in speed it float away in air. Please guide me to get out of this problem. some people suggested in similar questions about fake physics. but i do not know how to apply that. please guide me to true path. i,ll be very thankful.

thanks

more ▼

asked May 20 '11 at 06:14 AM

Sajjoo gravatar image

Sajjoo
49 39 40 45

What do you mean "it is still not smooth"? What is the result that you are getting, and what exactly do you want (perhaps a graph describing the motion?)

May 20 '11 at 07:41 AM Herman Tulleken

actually it tilts with taking jerks.

May 20 '11 at 07:51 AM Sajjoo
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Hey man, your question is pretty confusing... I'm assuming your not asking for someone to write the whole script for you?

Can I recommend that you break down what your trying to do and identify your key problems?

For smoothing user a Slerp or Lerp function ;)

more ▼

answered May 20 '11 at 08:39 AM

demize2010 gravatar image

demize2010
945 19 22 35

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x143
x103
x69
x29
x28

asked: May 20 '11 at 06:14 AM

Seen: 1581 times

Last Updated: May 20 '11 at 08:39 AM