|
Hi there! The only animated 3D character I could get to try this engine out is the Hero from Locomotion System,... so I created a terrain, and I wrote the following script to move it around the map with the "click to move", rts-like movement. private var targetPosition:Vector3; function Start () { targetPosition = transform.position; } function Update () { var playerPlane = new Plane(Vector3.up, transform.position); var rayo = Camera.main.ScreenPointToRay (Input.mousePosition); var puntochoque = 0.0; } But now I'd like to add the animation of "RunForward" (incorporated in the model) in this code in order to get the walking animation while the character is moving. Maybe the way I use to move the character isn't the proper one... So, how could I add the animation? Thanks in advance!
(comments are locked)
|
|
Do you still need help with this? in case you do: if you want to play an animation, all you have to do is by the looks of it you're using javascript, but this should work in both java and C#.
(comments are locked)
|
|
ONLINE STORE : ====( http://www.etradinglife.com )===== The website wholesale for many kinds of fashion shoes, like the nike,jordan,prada,****, also including the jeans,shirts,bags,hat and the decorations. All the products are free shipping, and the the price is competitive, and also can accept the paypal payment.,after the payment, can ship within short time. free shipping competitive price any size available accept the paypal jordan shoes $32 nike shox $32 Christan Audigier bikini $23 Ed Hardy Bikini $23 Smful short_t-shirt_woman $15 ed hardy short_tank_woman $16 Sandal $32 christian louboutin $80 Sunglass $15 COACH_Necklace $27 handbag $33 AF tank woman $17 puma slipper woman $30 ====( http://www.etradinglife.com )=====
(comments are locked)
|
