Interface IPlayerController ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
The physical state of a player, as much of it as the entity world needs: where they stand, how fast, how big, and how to move them somewhere else.
public interface IPlayerControllerRemarks ​
Declared next to its consumer so the entity world does not depend on whatever drives the player. The player moves per rendered frame rather than on the entity tick, so reads an implementation of this instead of owning the state.
Properties ​
HullHalfExtents ​
Gets the half-extents of the player's collision hull, which shrink when ducking.
Vector3 HullHalfExtents { get; }Property Value ​
Position ​
Gets the position of the player's feet, which is the entity origin.
Vector3 Position { get; }Property Value ​
Velocity ​
Gets the current velocity in units per second.
Vector3 Velocity { get; }Property Value ​
Methods ​
Teleport(Vector3, Vector3?) ​
Moves the player somewhere else outright, keeping their velocity. Null angles keep the current ones.
void Teleport(Vector3 feetPosition, Vector3? angles)Parameters ​
feetPosition Vector3
angles Vector3?

