Playmaker Forum
PlayMaker Help & Tips => PlayMaker Tutorials => Topic started by: enderki on May 27, 2013, 06:04:53 AM
-
Hey all,
new to most everything confusing in unity mostly scripting so i got this fancy addon. Though now I'm little curious about how to convert C# or a java format into playmaker. mostly with camera data such as the one from the Unity3d stealth project, http://unity3d.com/learn/tutorials/projects/stealth/camera-movement (http://unity3d.com/learn/tutorials/projects/stealth/camera-movement).
sorry I feel kind of ashamed to request for a tutorial of a tutorial, lol.
but I do like the dynamics of this camera a lot and while they do provide the source code I kind of would like to see how one would tackle such a task.
-cheers
-
Hi,
The camera work is very simple in that tutorial, tho you need some custom action to work with quaternions.
https://hutonggames.fogbugz.com/default.asp?W967
with these new actions, you will be able to do the same as that tutorial, the key is to use "QuaternionLerp"
Does that help? if you have problem implementing this, let me know.
We talked about creating the stealth project in PlayMaker, so that might be a good starting point actually :)
bye,
Jean
-
maybe but the Quaternion section is the same as me using the smooth look at node? I maybe over think this so just ask this as conformation.
Most interested in the self correcting aspect of it the array lerping between standarPos and abovePos using raycasting. Unless you ment using Quaternions to correct the line of sight issues.
thanks for getting back btw
-
Hi,
yes, I meant using quaternions exactly like they do in that script.
Doing the "checkPoints" is straighForward, you have a Vector3Lerp action for this too.
Bye,
Jean
-
I managed to recreate this pretty closely in playmaker after looking around to see if anyone had done it yet, it's not perfect but with a little polish it should be pretty close, the camera follows along pretty well. Only complaint is it can be a little slow to react at times.
If someone would like me to do a write up of it later on let me know and if i have time i will, you can figure out most of it by watching the video though.
-
Hi,
Very nice. Thanks for sharing. I guess you are very welcome to explain how you proceeded. A lot of members will appreciate this I am sure.
bye,
Jean