public UpdateFromHeading ( double heading, bool reliable ) : void | ||
heading | double | Camera rotation in radians |
reliable | bool | Whether to send the AgentUpdate reliable /// or not |
return | void |
public void UpdateFromHeading(double heading, bool reliable)
{
Camera.Position = Client.Self.SimPosition;
Camera.LookDirection(heading);
BodyRotation.Z = (float)Math.Sin(heading / 2.0d);
BodyRotation.W = (float)Math.Cos(heading / 2.0d);
HeadRotation = BodyRotation;
SendUpdate(reliable);
}