Jump to content
  • 0

Help I search scipt : ex a cat walks( I do it) and change direction(my problem) ?


PYTHA
 Share

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.

Question

  • 0

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.

  • Like 2
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

  • Like 2
Link to comment
Share on other sites

  • 0

Thanks fast answer . I try it and I shall see it's good or not . I didn't know ||SetKeyframeMotion. I go to college of scripting ... horsa and I haven't sawn this. So thanks again.

Sorry my english isn't very good ! ;)

PYTHA

Link to comment
Share on other sites

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 sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...