x


Changing Rigidbody drag on the fly

Is there a problem with dynamically changing the drag of a rigidbody? (For example, to slow down an object if it is above a given velocity.) Are there situations where changing it too frequently (such as in every FixedUpdate call) could result in performance issues?

more ▼

asked Dec 30 '09 at 09:41 PM

Ehren gravatar image

Ehren
4.2k 35 43 77

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

No, I don't think there are. This is a useful technique and one which has many practical applications.

For example, I have used code which dynamically changes the drag of my car physics object, depending on how deep it is submerged in water.

more ▼

answered Dec 30 '09 at 10:11 PM

duck gravatar image

duck ♦♦
41.4k 95 152 415

(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:

x5269
x1943
x1859

asked: Dec 30 '09 at 09:41 PM

Seen: 2097 times

Last Updated: Dec 31 '09 at 05:03 PM