Wandering Movement Script

I created a script that randomly orientates an object (while taking into account its current orientation) and moves the object in that direction for a random amount of blender units, thus creating random movement.

The script does not take into account path finding, its just a base that you can work with.

Some things that you may want to add to it are:
-A way to make it so the object does not wander to far away
-Path finding
-Allowing the object to move along slopes.

Wandering Movement

hey andrew 101,

ive had a look at alot of your scripts and you seem pretty cluey with python and BGE

i was wondering could you write me up a script to constrain rotation of an object???
or tell me how i could do it?

thanks i advance

There is a constraint actuator you could try to use, it can be set to orientation.
I’m not sure how to use it though so you’re going to have to google it.

ok, thanks

公司技术势力雄厚,有专业化队伍,具有先进机械设备疏通管道,承接各类高难度管道疏通.本公司所建工程, 均负责维修,本着一切以"客户满意为标准以质量求生存,立足于诚实做人诚信服务"管道疏通为服务的规则.现已发展成为一家专业成熟规范,规模极大的疏通公司,北京管道疏通该公司本着走向国际,面向全国,服务到家的原则,稳定安全输送渠道的原则"管道疏通,坚持服务反馈制度,对客户的意见和建议迅速进行督办,落实北京管道疏通,使客户真正享受到上帝般的服务