Sunday, December 2, 2012

Unity Penelope Camera Relative Controller Summary

So here is the Unity Penelope Camera Relative Controller Summary

1. Create an empty camera pivot, under it create camera offset, under it put your camera

-camera offset, set to position 0, 0.94, 0
-camera, set to position 0, 5, -12
-drag the rotationconstraint.js and followtransform.js into camera pivot


2. Put in your main character

-drag the character controller and camera relative control.js into your main character

3. Create an empty object name it Joystick, create two empty object under it, one as leftpad, one as rightpad

-drag the guitexture and joystick.js into your leftpad and rightpad

-set the empty joystick to location 0,0,0
-set the texture of guitexture to the button texture
-set the "leftpad" guitexture pixel in set to 30,30,100,100 (x,y, width,height)
-set the "rightpad" guitexture pixel in set to 30,355,100,100 (x,y, width,height)


Now that you have drag all the neccessary script into the object, make sure you drag all the object into the script variable

1. On the "Camera Pivot", make sure you drag your main character into followtransform.js "Target Transform", also your rotationconstraint.js put min = -15, max = 15

2. On the Main character, make sure you drag leftpad, rightpad, camera pivot, camera into the camerarelativecontrol.js variable


No comments:

Post a Comment