30 using System.Collections.Generic;
32 using System.Reflection;
33 using System.Threading;
35 using pCampBot.Interfaces;
54 private const int TIME_WALKING = 5 * 10;
55 private int counter = 0;
60 if (counter >= TIME_WALKING)
64 Vector3 target =
new Vector3(
Bot.
Random.Next(1, 254), Bot.Random.Next(1, 254),
Bot.
Client.Self.SimPosition.Z);
67 Bot.Client.Self.Movement.AtPos =
true;
73 Bot.Client.Self.Movement.SendUpdate();
76 private void MyTurnToward(Vector3 target)
78 Quaternion between = Vector3.RotationBetween(Vector3.UnitX, Vector3.Normalize(target - Bot.Client.Self.SimPosition));
79 Quaternion rot = between ;
81 Bot.Client.Self.Movement.BodyRotation = rot;
82 Bot.Client.Self.Movement.HeadRotation = rot;
83 Bot.Client.Self.Movement.Camera.LookAt(Bot.Client.Self.SimPosition, target);
Random Random
Random number generator.
override void Action()
Action to take when this behaviour is invoked.
string AbbreviatedName
Abbreviated name of this behaviour.
This behavior is for the systematic study of some performance improvements made for OSCC'13...
GridClient Client
New instance of a SecondLife client