WorldViz User Forum  

Go Back   WorldViz User Forum > Search Forums

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: Gladsomebeast
Forum: Vizard 06-19-2006, 04:42 PM
Replies: 1
Views: 9,714
Posted By Gladsomebeast
To reverse the direction of a vector, multipy it...

To reverse the direction of a vector, multipy it by a negative. I would change the following in your code:

future = vizmat.MoveAlongVector(current, vector,-30) #added a negative sign
Showing results 1 to 1 of 1

 
Forum Jump

All times are GMT -7. The time now is 02:29 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC