Example #1
0
    public void StartFrame()
    {
        float fdt = Time.fixedDeltaTime;

        Actor.SetPosition(transform.position);
        Actor.SetOrientation(transform.rotation);
        Actor.SetVelocity(Actor.orientation * Vector3.forward * 20F);
    }
Example #2
0
    public override void Simulate(EnemyArgs _args)
    {
        ActorHeader.Actor     _actor = _args.Actor;
        UnityEngine.Transform _self  = _args.Self;

        _actor.SetPosition(_self.position);
        _actor.SetOrientation(_self.rotation);

        ActorHeader.Move(this, _actor, GlobalTime.FDT);

        _self.SetPositionAndRotation(_actor._position, _actor._orientation);
    }
    public override void Simulate(ActorArgs _args)
    {
        ActorHeader.Actor     Actor     = _args.Actor;
        UnityEngine.Transform Transform = _args.ActorTransform;

        Actor.SetPosition(Transform.position);
        Actor.SetOrientation(Transform.rotation);

        ActorHeader.Move(this, Actor, GlobalTime.FDT);

        Transform.SetPositionAndRotation(Actor._position, Actor._orientation);

        return;
    }