using System.Collections; using System.Collections.Generic; using UnityEngine; using…
- User
using System.Collections; using System.Collections.Generic; using UnityEngine; using BlazeAISpace; using BlazeAIDemo;
using UnityEngine; using UnityEngine.Events;
using UnityEngine; using System.Collections.Generic;
i ahve rigidbodyy
its characterr controlle
i need flaot to see its speed
also i wanna based on speed rotates legs like humann girl movement procedurally rotating and optimised
write that simple workin smoothly scritptt
also there must e upperleg and lwoer leg upper leg - hip like parent of leg, lower leg - knee that chidlren of upperleg
i need girl human like rotation smooth, but u know
- Assistant
Sure! Below is an example Unity script to achieve a human-like leg rotation based on the speed of the character using a Rigidbody component. This script will take care of getting the speed and rotating the upper and lower legs smoothly.