protected bool UpdateRenderEntity(idRenderEntity renderEntity, idRenderView renderView) { // TODO: cinematic /*if ( gameLocal.inCinematic && gameLocal.skipCinematic ) { * return false; * }*/ idAnimator animator = this.Animator; if (animator != null) { return(animator.CreateFrame(idR.Game.Time, false)); } return(false); }
private void UpdateModel() { UpdateModelTransform(); // check if the entity has an MD5 model idAnimator animator = this.Animator; if ((animator != null) && (animator.Model != null)) { // set the callback to update the joints _renderEntity.Callback = ModelCallback; } // set to invalid number to force an update the next time the PVS areas are retrieved ClearPVSAreas(); // ensure that we call Present this frame BecomeActive(EntityThinkFlags.UpdateVisuals); }
public idAnimatedEntity() : base() { _animator = new idAnimator(this); }