ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudsetcameraactoradvanced

This is an old revision of the document!


HudSetCameraActorAdvanced

void HudSetCameraActorAdvanced(int tid, int flags)

This is a HUD Library function.

Description

Sets camera position and direction to match those of the specified actor. Advanced version of SetHudCameraActor.

Takes the following flags:

  • HUD_CAMERAACTOR_NOPOSITION – don't call HudSetCameraPosition.
  • HUD_CAMERAACTOR_NODIRECTION – don't call HudSetCameraDirection.
  • HUD_CAMERAACTOR_NOPREDICTION – don't try to shift camera position based on actor velocity to minimize positioning artifacts caused by 35 fps rendering.
  • HUD_CAMERAACTOR_NOVIEWHEIGHT – don't take the actor's view height into account.

Use | operator to combine flags (e.g HUD_CAMERAACTOR_NOPREDICTION | HUD_CAMERAACTOR_NOVIEWHEIGHT).

Examples

while (IsPlaying())
{
    HudResetState();
    HudSetCameraActor(0);
    Draw3DStuff();
    Delay(1);
}
functions/hudsetcameraactoradvanced.1492449155.txt.gz · Last modified: 2017/04/17 20:12 by korshun