This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

ramiam

Member
  • Content count

    34
  • Joined

  • Last visited

Community Reputation

1 Neutral

5 Followers

About ramiam

  • Rank
    Member
  • Birthday 09/11/1989

Profile Information

  • Location:
    Bradford

Recent Profile Visitors

155 profile views
  1. Hi am Rami 

    30 % code

     

  2. yes
  3. am use this animation https://www.assetstore.unity3d.com/en/#!/content/21925
  4. yes my camera it's not good am try right the script again
  5. IK not working and no error my code >>>> ######################################### using System.Collections; using System.Collections.Generic; using UnityEngine; public class IkHand : MonoBehaviour { Animator anim; StatsManeger states; public float lookWeight = 1; public float bodyWeight = 0.8f; public float headweight = 1; public float clampweight = 1; float targetweight; public Transform weponHoleder; public Transform rightShoulder; public Transform overridLookTarget; public Transform rightHundITarget; public float rightHandIKweight; public Transform leftHandIKTarget; public float LeftHandIKweight; Transform aimHHelper; // Use this for initialization void Start () { aimHHelper = new GameObject().transform; anim = GetComponent<Animator>(); states = GetComponent<StatsManeger>(); } // Update is called once per frame void FixedUpdate () { if(rightShoulder==null ) { rightShoulder = anim.GetBoneTransform(HumanBodyBones.RightShoulder); } else { weponHoleder.position = rightShoulder.position; } if(states.aiming&&!states.reloading) { Vector3 drirctionTowardsTarget = aimHHelper.position - transform.position; float angle = Vector3.Angle(transform.forward, drirctionTowardsTarget); if(angle<90) { targetweight = 1; } else { targetweight = 0; } } else { targetweight = 0; } float mltiplier = (states.aiming)?5:30; lookWeight = Mathf.Lerp(lookWeight, targetweight, Time.deltaTime * mltiplier); rightHandIKweight = lookWeight; LeftHandIKweight = 1 - anim.GetFloat("Curve22"); HandleShoulderRotation(); } void HandleShoulderRotation() { aimHHelper.position = Vector3.Lerp(aimHHelper.position, states.lookHitPosition, Time.deltaTime * 5); weponHoleder.LookAt(aimHHelper.position); rightHundITarget.parent.transform.LookAt(aimHHelper.position); } void OnAinmatorIK() { anim.SetLookAtWeight (lookWeight, bodyWeight, headweight , headweight, clampweight); Vector3 filterDirection = states.lookPosition ; anim.SetLookAtPosition( (overridLookTarget != null)? overridLookTarget.position:filterDirection ); if(leftHandIKTarget ) { anim.SetIKPositionWeight(AvatarIKGoal.LeftHand, LeftHandIKweight); anim.SetIKPosition(AvatarIKGoal.LeftHand, leftHandIKTarget.position); anim.SetIKRotationWeight(AvatarIKGoal.LeftHand, LeftHandIKweight); anim.SetIKRotation(AvatarIKGoal.LeftHand, leftHandIKTarget.rotation); } if (rightHundITarget) { anim.SetIKPositionWeight(AvatarIKGoal.RightHand, rightHandIKweight); anim.SetIKPosition(AvatarIKGoal.RightHand, rightHundITarget.position); anim.SetIKRotationWeight(AvatarIKGoal.RightHand, rightHandIKweight); anim.SetIKRotation(AvatarIKGoal.RightHand, rightHundITarget.rotation); } } }
  6. that right it's working
  7. I have problem in TPS Camer Rig just Follow target show >>
  8. Thanxx ti is working
  9. void SetupAnimator() { anim = GetComponent<Animator>(); foreach (var childAnimator in GetComponentInChildren<Animator>()) { if (childAnimator != anim) { anim.avatar = childAnimator.avatar; Destroy(childAnimator); break; } }
  10. This is my old team And one man
  11. HI armeduity ineed a team http://www.youtube.com/playlist?list=PLCB91j5yFb8Z4We5LqYkFRgdGxqrCQnvi
  12. Hi i m rami Leves in bradford uk Work in unity3d 10%
  13. http://unity3d.com/learn/tutorials/modules/beginner/scripting