mechanicmarx / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Edit Object Actuator : TrackTo function #176

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add an Edit Object Actuator, and set track to some object
2. Run GameKit

What is the expected output? What do you see instead?
The TrackTo function doesn't implemented yet.

Please provide any additional information below.
I propose a very rough trackTo function, and hope it is useful.
Here is the patch:
http://dl.dropbox.com/u/3833531/gkEditObjectActuator.h.diff
http://dl.dropbox.com/u/3833531/gkEditObjectActuator.diff

And Test File:
http://dl.dropbox.com/u/3833531/TrackToActuator.zip
Press spacebar to apply force to ragdoll, the camera and suzzane should look at 
ragdoll.

Note 1
In my realize, blender use negtive Z axis as Camera's lookAt vector, and 
postive Y axis for other object.
Please correct me if I was wrong.

Note2
This implementation just ignore the "time" and "3D" option in Blender. In other 
words, time is always "0" and always use 3D track mode

Thanks

Original issue reported on code.google.com by dokin...@gmail.com on 6 Jul 2011 at 5:22

GoogleCodeExporter commented 8 years ago
This patch was applied to trunk.
Thanks.

Original comment by harkon...@gmail.com on 14 Jul 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Hi harkon

Thanks your effort and accept my proposal

I noticed you've add skinned_ragdoll.blend to main trunk.

But that file is not made by myself. I download it from blender artist forum.

And I'm not sure the author agree or not we redistribute his work.

Just a remind :)

Thank you

Original comment by dokin...@gmail.com on 15 Jul 2011 at 8:19

GoogleCodeExporter commented 8 years ago
Oops, I removed it :)
Thanks.

Original comment by harkon...@gmail.com on 16 Jul 2011 at 1:33

GoogleCodeExporter commented 8 years ago
I close this one.

Original comment by thomas.t...@googlemail.com on 17 Jul 2012 at 10:32

GoogleCodeExporter commented 8 years ago
Hey, I didn't close this one to remember me to finish something... I'm going to 
commit it.

Original comment by kungfoobar@gmail.com on 18 Jul 2012 at 11:12

GoogleCodeExporter commented 8 years ago
Oops, I wish I could edit commit messages. Anyway, r1999: Rewrote track-to 
logic brick to behave the same way as in Blender, be correctly 
disabled/enabled, have 2D/3D modes and move the physic object as well. It's 
also a good example of how to implement look-at/track-to functionality.

I didn't commit it yet because I also wanted to implement the two remaining 
modes of the edit object actuator: replace mesh and dynamics.

Original comment by kungfoobar@gmail.com on 18 Jul 2012 at 12:42