Page MenuHome

Allow to change the strenght of the "go behind" constraint of the camera actuator
Closed, ArchivedPublicPATCH

Description

The camera actuator is an actuator that drive the camera to follow an object, with a set of constraint.

Currently, when the object followed rotate on himself (like a person, or an helicopter), the camera is really slow to go behind (at least 10 seconds).

This patch gives the UI to tweak the strenght of the 'go behind' constraint.


This patch is available on http://codereview.appspot.com/4517077/ for a review. Please be careful, that my first patch for Blender.

Event Timeline

Hi,

I updated my patch, following the comment made by dfelinto on http://codereview.appspot.com/4517077/.

I try to add python access to the new value also, but i'm not sure if this is enought.

Trying to add the patch, sorry for the noise.

assigning to myself.
Michael, can you add the updated patch to the same entry in the codereview? (login, and see the option between the "Patch Set" and the "Messages").

Hi,

I updated the patch to correct:
1) mispelling of strength
2) range for python binding set to (0,10)
3) range max for UI to (0,10), soft range to (0,5)

I didn't find how to update a patch on codereview, so i reuploaded it: http://codereview.appspot.com/4517077/

Hi Michael. I can't find your new patch. Where did you re-upload it to? [you sent me the same link of the original entry]

Btw: this is how to add a new patch to the codereview tracker:
http://www.pasteall.org/pic/show.php?id=12913

And after talking with Mitchell and Campbell we thought that "Damping" is better than "back strength", mind changing that in the patch? (or would you have a better name suggestion?)
Thanks

Hi,

I updated the patch with the new naming. You will find it here: http://codereview.appspot.com/4517077/

I used "upload.py -i 4517077" to update the patch set. For the record, "Add another patch set" does NOT appears for me in the codereview website.

After more testing, I saw that the camera sometimes makes "jump" with my patch. I think that the problem is not in my patch, but in the underlying math. That explain why this constraint was so low ...

Anyway, I have a blend file if you want to test:
https://github.com/MichaelMure/Projet2A/raw/master/FinalScene.blend

Keys to pilot are:
- left, right, up, down
- Z Q S D (french keyboard here)

(easter egg with numpad-)

committed on rev. 37455
Thanks for the patch and nice demo btw.

Dalai Felinto (dfelinto) changed the task status from Unknown Status to Unknown Status.Jun 13 2011, 7:09 PM