- 0
Help I search scipt : ex a cat walks( I do it) and change direction(my problem) ?
You are about to reply to a thread that has been inactive for 4052 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
Rolig Loon
I could try to explain ways to set rotations properly, but instead I think it is wiser for you to use a completely diferent method. Take a good look at the llSetKeyframedMotion function in the LSL wiki at http://wiki.secondlife.com/wiki/LlSetKeyframedMotion . You can make your cat follow a very complex path easily by just defining new waypoints and local rotations.
Your second problem is similarly easy to solve, and you have already found the answer. Assuming that your cat is designed to walk with its +Z axis pointing UP, you can always make it face East by saying llSetRot(ZERO_ROTATION). From there, you can turn the cat to face southward by writing llSetRot(llEuler2Rot(<0.0,0.0,PI/2>)), as you have already tried.
If you have questions as you write your script, just post them in the LSL Scripting forum. We are always glad to help people who are learning to write LSL scripts or who have new insights to share.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now