Exemple #1
0
    public static void ROTATE_SPEED_OBJECT_PHY(MovableObject obj, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue)
    {
        CommandMovableObjectRotateSpeedPhysics cmd = mCommandSystem.newCmd <CommandMovableObjectRotateSpeedPhysics>(false, false);

        cmd.mRotateSpeed        = speed;
        cmd.mStartAngle         = startAngle;
        cmd.mRotateAcceleration = rotateAccelerationValue;
        mCommandSystem.pushCommand(cmd, obj);
    }
Exemple #2
0
    public static CommandMovableObjectRotateSpeedPhysics ROTATE_SPEED_OBJECT_PHY_DELAY(MovableObject obj, float delayTime, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue)
    {
        CommandMovableObjectRotateSpeedPhysics cmd = mCommandSystem.newCmd <CommandMovableObjectRotateSpeedPhysics>(false, true);

        cmd.mRotateSpeed        = speed;
        cmd.mStartAngle         = startAngle;
        cmd.mRotateAcceleration = rotateAccelerationValue;
        mCommandSystem.pushDelayCommand(cmd, obj, delayTime);
        return(cmd);
    }