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

    55
  • Joined

  • Last visited

Community Reputation

1 Neutral

5 Followers

About ramiam

  • Rank
    Member
  • Birthday 09/11/1989

Profile Information

  • Location:
    Bradford

Recent Profile Visitors

396 profile views
  1. finally I did After 3 months of failure
  2. it's fixed thank u all
  3. i'm start on 3 year ago form simple this time to get start to complx project all code is working just cover animation not good
  4. I'm useing tutorial and add my own code sam time get like this problem and this my anmator my anmator.unitypackage
  5. on cover it's not looking in right dirction it's looking to wall
  6. just I need fix Rotation
  7. Hi all Cover Rotation void CoverMovement() { if(horizontal!=0) { if(horizontal<0) { states.coverDirection = -1; }else { states.coverDirection = 1; } } float lineLength = states.coverPos.length; float movement = ((horizontal * coverAcceleration) * coverMaxSpeed) * Time.deltaTime; float lerpMovement = movement / lineLength; states.coverPercentage -= lerpMovement; states.coverPercentage = Mathf.Clamp01(states.coverPercentage); Vector3 curverPathPosintion = states.coverPos.curvePath.GetPointAt(states.coverPercentage); curverPathPosintion.y = transform.position.y; transform.position = curverPathPosintion; HandleCoverRotation(); } void HandleCoverRotation() { float forwardPerc = states.coverPercentage + 0.1f; if (forwardPerc > .99f) { forwardPerc = 1; } Vector3 positionNow = states.coverPos.curvePath.GetPointAt(states.coverPercentage); Vector3 positionForward = states.coverPos.curvePath.GetPointAt(forwardPerc); Vector3 direction = Vector3.Cross(positionNow, positionForward); direction.y = 0; Quaternion targetRotation = Quaternion. LookRotation(direction); transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, Time.deltaTime * rotateSpeed); }
  8. i'm install all tools android publishing
  9. not just me all programming this AI someone help me
  10. Hi all New I'm start on Difficult part AI if anyone wants to enjoy to my team u r welcome to zool Devl
  11. how to fix
  12. sorry I forgot to send you now I'm ready
  13. all error from a text editor 7 =============================================================== if (m_FocusedTextField != null) { GUI.FocusControl(m_FocusedTextField.name); TextEditor te = (TextEditor)GUIUtility.GetStateObject(typeof(TextEditor), GUIUtility.keyboardControl); if (te.content.text != m_FocusedTextField.TextFieldText) te.content.text = m_FocusedTextField.TextFieldText; if (te != null) { if (m_FocusChanged) //if the focus has changed, we make sure that caret is at the end of the field { if (te.pos != m_FocusedTextField.TextFieldText.Length) te.pos = m_FocusedTextField.TextFieldText.Length; else m_FocusChanged = false; } else if (m_LastCaretPos != te.pos || m_TextChanged) { m_TextChanged = false; Vector3 newCaretPos; float newCaretHeight; if (m_FocusedTextField.GetCaretPositionAndHeight(te.pos, out newCaretPos, out newCaretHeight)) { m_CaretRect.x = newCaretPos.x; m_CaretRect.y = newCaretPos.y - newCaretHeight/2; m_CaretRect.height = newCaretHeight; ShowCaret(); m_LastCaretPos = te.pos; } } te.selectPos = te.pos; //this will disable selection of text (using shift+arrow keys) } SimulateTextField(); DrawCaret(); } else GUI.FocusControl(null); }